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-08-29 14:35:23 +00:00
2010-10-05 08:50:54 +00:00
2010-09-13 07:21:38 +00:00
2010-10-05 08:50:54 +00:00
2010-10-05 08:50:54 +00:00
2010-11-08 18:28:07 +00:00
2010-08-29 14:35:23 +00:00
2010-10-05 08:50:54 +00:00
2010-08-29 14:35:23 +00:00
2011-02-21 02:06:51 +00:00
2011-02-21 02:06:51 +00:00
2010-10-21 08:23:11 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-10-21 08:23:11 +00:00
2010-08-29 14:35:23 +00:00
2010-10-05 08:50:54 +00:00
2010-10-05 08:50:54 +00:00
2010-10-21 08:23:11 +00:00
2010-11-16 08:00:07 +00:00
2011-02-21 02:06:51 +00:00
2010-10-05 08:50:54 +00:00
2011-04-17 18:32:28 +00:00
2011-05-25 19:16:58 +00:00
2010-10-05 08:50:54 +00:00
2010-10-05 08:50:54 +00:00
2010-10-05 08:50:54 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-31 20:06:38 +00:00
2011-02-21 02:06:51 +00:00
2011-01-25 10:24:27 +00:00
2011-02-21 02:06:51 +00:00
2010-08-29 14:35:23 +00:00
2010-12-19 16:46:47 +00:00
2010-11-24 18:50:11 +00:00
2011-02-21 02:06:51 +00:00
2011-02-21 02:06:51 +00:00
2010-10-05 08:50:54 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2011-02-21 02:06:51 +00:00
2011-02-21 02:06:51 +00:00
2010-10-05 08:50:54 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2011-01-05 03:07:56 +00:00
2011-02-21 02:06:51 +00:00
2010-08-29 14:35:23 +00:00
2011-02-21 02:06:51 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-11-11 13:48:48 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-10-05 08:50:54 +00:00
2011-02-21 02:06:51 +00:00
2011-02-19 12:44:07 +00:00
2010-10-05 08:50:54 +00:00
2011-01-25 00:25:49 +00:00
2011-03-10 18:00:41 +00:00
2011-02-20 19:59:25 +00:00
2011-02-21 02:06:51 +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-02-21 02:06:51 +00:00
2011-02-21 02:06:51 +00:00
2010-12-22 17:18:11 +00:00
2010-10-05 08:50:54 +00:00
2011-02-21 02:06:51 +00:00
2010-10-05 08:50:54 +00:00
2010-08-29 14:35:23 +00:00
2011-02-21 02:06:51 +00:00
2011-02-21 02:06:51 +00:00
2010-10-30 10:00:34 +00:00
2010-10-05 08:50:54 +00:00
2010-10-05 08:50:54 +00:00
2011-05-09 15:21:58 +00:00
2010-10-05 08:50:54 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-10-05 08:50:54 +00:00
2010-10-21 08:23:11 +00:00
2011-02-19 12:44:07 +00:00
2011-05-24 10:00:36 +00:00
2010-10-05 08:50:54 +00:00
2010-10-05 08:50:54 +00:00
2011-02-21 02:06:51 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-10-21 08:23:11 +00:00
2010-10-21 08:23:11 +00:00
2010-08-29 14:35:23 +00:00
2010-10-06 09:40:00 +00:00
2010-10-05 08:50:54 +00:00
2011-03-13 17:24:28 +00:00
2011-05-16 21:50:20 +00:00
2010-11-02 11:50:56 +00:00
2010-10-05 08:50:54 +00:00
2011-02-21 02:06:51 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2010-10-05 08:50:54 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2011-02-19 12:44:07 +00:00
2010-08-29 14:35:23 +00:00
2010-12-08 08:59:31 +00:00
2010-11-10 12:26:18 +00:00
2011-02-21 02:06:51 +00:00
2010-08-29 14:35:23 +00:00
2010-08-29 14:35:23 +00:00
2011-02-21 02:06:51 +00:00
2010-10-05 08:50:54 +00:00