From: Eli Billauer Date: Thu, 4 Sep 2014 14:47:41 +0000 (+0300) Subject: staging: xillybus: Use SEEK_* predefined constants X-Git-Tag: v3.18-rc1~130^2~649 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3cbc747946d9c4c0c018744fccfba952b7f8bcf0;p=karo-tx-linux.git staging: xillybus: Use SEEK_* predefined constants Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index cacd560dd6d9..61699fa5127b 100644 --- a/drivers/staging/xillybus/xillybus_core.c +++ b/drivers/staging/xillybus/xillybus_core.c @@ -1720,13 +1720,13 @@ static loff_t xillybus_llseek(struct file *filp, loff_t offset, int whence) mutex_lock(&channel->rd_mutex); switch (whence) { - case 0: + case SEEK_SET: pos = offset; break; - case 1: + case SEEK_CUR: pos += offset; break; - case 2: + case SEEK_END: pos = offset; /* Going to the end => to the beginning */ break; default: