Skip to contentSkip to conversation

fix 'and' typos in drivers/block/pktcdvd.c

PATCH In review Roel Kluin 2 participants 2 messages Oct 27, 2007 Block layer

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 fix 'and' typos in drivers/block/pktcdvd.c

Fix two 'and' typos

---

drivers/block/pktcdvd.c +2 -2
index a8130a4..9cd6ba2 100644
@@ -2202,11 +2202,11 @@ static int pkt_media_speed(struct pktcdvd_device *pd, unsigned *speed)
 		return ret;
 	}
 
-	if (!buf[6] & 0x40) {
+	if (!(buf[6] & 0x40)) {
 		printk(DRIVER_NAME": Disc type is not CD-RW\n");
 		return 1;
 	}
-	if (!buf[6] & 0x4) {
+	if (!(buf[6] & 0x4)) {
 		printk(DRIVER_NAME": A1 values on media are not valid, maybe not CDRW?\n");
 		return 1;
 	}
#1 lore raw

drivers/block/pktcdvd.c static int pkt_media_speed(struct pktcdvd_device *pd, unsigned *speed) · line 2209

Quoted 13 lines · Roel Kluin
drivers/block/pktcdvd.c +2 -2
@@ -2202,11 +2202,11 @@ static int pkt_media_speed(struct pktcdvd_device *pd, unsigned *speed)
 		return ret;
 	}
 
-	if (!buf[6] & 0x40) {
+	if (!(buf[6] & 0x40)) {
 		printk(DRIVER_NAME": Disc type is not CD-RW\n");
 		return 1;
 	}
-	if (!buf[6] & 0x4) {
+	if (!(buf[6] & 0x4)) {

Roel, many of this were fixed during
"+ fix-vm_can_nonlinear-check-in-sys_remap_file_pages.patch added to -mm tree" thread. Please, check patches in there and send what was missed.