florian
97d0245acb
[kernel] fix mtd warnings
...
Fixes for the following warnings:
drivers/mtd/devices/block2mtd.c: In function '_open_bdev':
drivers/mtd/devices/block2mtd.c:272:3: warning: ISO C90 forbids mixed declarations and code
drivers/mtd/devices/block2mtd.c: In function 'add_device':
drivers/mtd/devices/block2mtd.c:399:13: warning: assignment discards qualifiers from pointer target type
In the case of 442-block2mtd_probe.patch, it's not until the insertion of a executable statement before the definition that causes a warning, so I've chosen to resolve the issue here by splitting the definition and the initialization into a definition and a statement (and assignment) instead.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27007 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-25 19:16:58 +00:00
..
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-07-31 06:49:38 +00:00
2010-12-17 20:34:26 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-08-22 17:07:37 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-11-15 14:24:43 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2010-11-24 18:50:11 +00:00
2010-11-24 18:50:11 +00:00
2010-11-24 18:50:11 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-08-22 17:07:37 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-04-17 18:32:28 +00:00
2011-05-25 19:16:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-08-31 20:06:38 +00:00
2010-08-31 20:06:38 +00:00
2010-08-31 20:06:38 +00:00
2010-08-31 20:06:38 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-09-14 12:03:01 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2011-03-10 13:50:19 +00:00
2011-02-21 02:06:51 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2011-02-21 02:06:51 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-01-05 03:07:56 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-07-04 15:28:41 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-08-22 17:07:37 +00:00
2011-01-25 00:25:49 +00:00
2011-03-10 18:00:41 +00:00
2011-02-21 00:03:20 +00:00
2010-11-30 01:52:51 +00:00
2010-11-30 01:52:51 +00:00
2010-12-17 17:10:08 +00:00
2011-03-13 17:12:20 +00:00
2011-03-13 17:12:20 +00:00
2010-12-22 17:18:11 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-05-09 15:21:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-05-15 19:17:31 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2010-08-31 20:06:42 +00:00
2010-08-31 20:06:42 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-12-11 16:07:21 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2011-02-19 12:44:23 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:24:28 +00:00
2011-05-16 21:50:20 +00:00
2010-08-22 17:07:37 +00:00
2010-06-26 20:42:58 +00:00
2010-06-26 20:42:58 +00:00
2011-02-19 12:44:23 +00:00
2010-06-26 20:42:58 +00:00
2011-03-13 17:12:20 +00:00
2010-06-26 20:42:58 +00:00