From: Josef 'Jeff' Sipek Date: Sun, 1 Oct 2006 06:27:33 +0000 (-0700) Subject: [PATCH] MBCS: Use SEEK_{SET, CUR, END} instead of hardcoded values X-Git-Tag: v2.6.19-rc1~606 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=930ff81c595e7923575cd7c0b8d7284ac1b3815e;p=linux-2.6 [PATCH] MBCS: Use SEEK_{SET, CUR, END} instead of hardcoded values MBCS: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/mbcs.c b/drivers/char/mbcs.c index 0385650f60..6363547226 100644 --- a/drivers/char/mbcs.c +++ b/drivers/char/mbcs.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -447,15 +448,15 @@ loff_t mbcs_sram_llseek(struct file * filp, loff_t off, int whence) loff_t newpos; switch (whence) { - case 0: /* SEEK_SET */ + case SEEK_SET: newpos = off; break; - case 1: /* SEEK_CUR */ + case SEEK_CUR: newpos = filp->f_pos + off; break; - case 2: /* SEEK_END */ + case SEEK_END: newpos = MBCS_SRAM_SIZE + off; break;