[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <115dd6f4c0504afa5662.1158455367@turing.ams.sunysb.edu>
Date: Sat, 16 Sep 2006 21:09:27 -0400
From: "Josef 'Jeff' Sipek" <jeffpc@...efsipek.net>
To: linux-kernel@...r.kernel.org
Cc: akpm@...l.org, dhowells@...hat.com
Subject: [PATCH 1 of 11] 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 <jeffpc@...efsipek.net>
--
diff -r abfba7cd6289 -r 115dd6f4c050 drivers/char/mbcs.c
--- a/drivers/char/mbcs.c Sun Sep 17 02:54:32 2006 +0700
+++ b/drivers/char/mbcs.c Sat Sep 16 21:00:45 2006 -0400
@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/mm.h>
+#include <linux/fs.h>
#include <linux/uio.h>
#include <asm/io.h>
#include <asm/uaccess.h>
@@ -447,15 +448,15 @@ loff_t mbcs_sram_llseek(struct file * fi
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists