Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a292308 authored by Jeff Garzik's avatar Jeff Garzik Committed by David Woodhouse
Browse files

[MTD] fix printk warning



gcc spits out this warning:

drivers/mtd/mtd_blkdevs.c: In function ‘do_blktrans_request’:
drivers/mtd/mtd_blkdevs.c:72: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’

This could be fixed any number of ways, including use of BUG().
rq_data_dir() only returns 0 or 1, so this entire case is superfluous.
I did the most simple fix.

Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 8a84fc15
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -69,7 +69,7 @@ static int do_blktrans_request(struct mtd_blktrans_ops *tr,
		return 1;
		return 1;


	default:
	default:
		printk(KERN_NOTICE "Unknown request %ld\n", rq_data_dir(req));
		printk(KERN_NOTICE "Unknown request %u\n", rq_data_dir(req));
		return 0;
		return 0;
	}
	}
}
}