From 3cbc747946d9c4c0c018744fccfba952b7f8bcf0 Mon Sep 17 00:00:00 2001 From: Eli Billauer Date: Thu, 4 Sep 2014 17:47:41 +0300 Subject: [PATCH] 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 --- drivers/staging/xillybus/xillybus_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: