Arnd Bergmann
b2f0fa828e
mfd/asic3: fix asic3_mfd_probe return value
...
In commit 4f304245b "mfd: Set asic3 DS1WM clock_rate", a possible
path through asic3_mfd_probe was introduced that would lead to
an unpredictable return value, if everything succeeds but there
are pdata->leds is NULL. This was reported correctly by gcc.
Without this patch, building magician_defconfig results in:
drivers/mfd/asic3.c: In function 'asic3_mfd_probe':
drivers/mfd/asic3.c:940:2: warning: 'ret' may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Cc: Paul Parsons <lost.distance@yahoo.com >
Cc: Philipp Zabel <philipp.zabel@gmail.com >
Cc: Samuel Ortiz <sameo@linux.intel.com >
2012-08-08 21:13:00 +02:00
..
2012-07-16 15:26:45 +02:00
2012-07-16 15:26:37 +02:00
2012-07-16 15:26:37 +02:00
2012-07-09 00:16:14 +02:00
2012-04-05 15:25:50 -07:00
2012-07-31 19:07:42 -07:00
2012-07-09 00:16:13 +02:00
2012-07-09 00:16:13 +02:00
2012-07-09 00:16:13 +02:00
2012-07-09 00:16:13 +02:00
2012-07-09 00:16:13 +02:00
2012-07-17 11:17:24 +02:00
2012-07-25 00:52:17 +02:00
2012-07-16 15:00:32 +02:00
2012-07-16 15:00:32 +02:00
2012-07-16 15:00:32 +02:00
2012-07-16 15:00:32 +02:00
2012-08-08 21:13:00 +02:00
2012-05-01 12:00:21 +02:00
2012-07-09 00:16:07 +02:00
2012-05-20 17:27:03 +02:00
2012-05-20 17:27:03 +02:00
2012-07-27 15:32:33 +02:00
2012-07-09 00:16:10 +02:00
2012-05-01 12:00:23 +02:00
2012-05-01 12:00:21 +02:00
2012-07-30 12:41:17 -07:00
2012-05-20 17:27:14 +02:00
2012-05-20 17:27:02 +02:00
2012-05-09 17:20:09 +02:00
2012-05-20 17:27:03 +02:00
2012-07-16 15:00:32 +02:00
2012-07-09 00:16:10 +02:00
2012-07-09 00:16:13 +02:00
2012-07-09 00:16:13 +02:00
2012-07-09 15:13:42 +02:00
2012-07-10 11:00:37 +02:00
2012-05-20 17:27:06 +02:00
2012-07-09 00:16:11 +02:00
2012-07-09 00:16:08 +02:00
2012-07-16 15:40:17 +02:00
2012-07-16 15:40:17 +02:00
2012-05-01 12:35:40 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-07-09 00:16:08 +02:00
2012-07-09 00:16:25 +02:00
2012-07-09 00:16:26 +02:00
2012-07-16 15:55:41 +02:00
2012-05-09 17:50:29 +02:00
2012-05-01 12:00:21 +02:00
2012-07-16 14:30:47 +02:00
2012-07-16 14:31:59 +02:00
2012-05-09 15:34:28 +02:00
2012-06-20 14:39:36 -07:00
2012-06-20 14:39:36 -07:00
2012-07-09 00:16:13 +02:00
2012-07-14 13:30:25 +02:00
2012-07-25 00:40:11 +02:00
2012-07-19 10:38:33 -04:00
2012-07-25 00:44:48 +02:00
2012-07-12 18:27:36 +01:00
2012-05-20 17:27:08 +02:00
2012-07-16 15:43:15 +02:00
2012-04-05 16:58:23 -07:00
2012-05-09 18:02:51 +02:00
2012-03-22 13:05:34 +01:00
2012-07-25 00:27:13 +02:00
2012-05-20 17:27:12 +02:00
2012-07-31 18:08:25 -07:00
2012-05-01 12:00:21 +02:00
2012-05-20 17:27:07 +02:00
2012-05-20 17:27:07 +02:00
2012-05-20 17:27:14 +02:00
2012-07-19 10:38:31 -04:00
2012-03-28 13:56:35 -07:00
2012-07-09 00:46:29 +02:00
2012-07-16 14:59:56 +02:00
2012-07-09 00:16:10 +02:00
2012-07-09 00:16:10 +02:00
2012-07-09 00:16:10 +02:00
2012-07-09 00:16:10 +02:00
2012-05-20 17:27:05 +02:00
2012-07-09 00:33:29 +02:00
2012-07-09 00:16:10 +02:00
2012-05-01 12:00:21 +02:00