[PATCH] Fix incorrect operator precidence

From: Russell King (rmk@arm.linux.org.uk)
Date: Sun Jun 22 2003 - 18:58:05 EST


--- orig/drivers/mtd/mtd_blkdevs.c Sat Jun 14 22:33:57 2003
+++ linux/drivers/mtd/mtd_blkdevs.c Mon Jun 23 00:43:14 2003
@@ -46,7 +46,7 @@
         nsect = req->current_nr_sectors;
         buf = req->buffer;
 
- if (!req->flags & REQ_CMD)
+ if (!(req->flags & REQ_CMD))
                 return 0;
 
         if (block + nsect > get_capacity(req->rq_disk))

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:39 EST