Himangi Saraogi
e0c8a1f52d
mfd: menelaus: Remove null pointer dereference
...
If vtg is NULL, it is not possible to access its mode_reg field. At all
sites where the static function menelaus_set_voltage is called, the first
argument is the address of a structure defined in the file. So, the null
test is unnecessary and is removed. Also, a label is done away with.
This problem was found using the following Coccinelle semantic match:
// <smpl>
@@
expression E, E1;
identifier f;
statement S1,S2,S3;
@@
* if (E == NULL)
{
... when != if (E == NULL) S1 else S2
when != E = E1
* E->f
... when any
return ...;
}
else S3
// </smpl>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com >
Acked-by: Julia Lawall <julia.lawall@lip6.fr >
Signed-off-by: Lee Jones <lee.jones@linaro.org >
2014-09-26 08:15:36 +01:00
..
2014-08-14 18:13:46 -06:00
2014-08-18 17:40:09 -04:00
2014-08-13 18:27:40 -06:00
2014-08-06 21:14:42 -07:00
2014-07-31 13:45:32 -04:00
2014-08-14 18:10:33 -06:00
2014-07-31 01:07:28 +02:00
2014-08-24 11:28:30 -07:00
2014-08-15 10:26:01 +05:30
2014-08-08 11:14:29 -07:00
2014-08-08 11:14:29 -07:00
2014-08-14 18:13:46 -06:00
2014-08-14 18:13:46 -06:00
2014-08-14 18:10:33 -06:00
2014-08-11 07:14:01 -07:00
2014-08-15 17:56:45 -06:00
2014-08-06 09:38:14 -07:00
2014-08-22 08:45:40 +01:00
2014-08-21 07:44:57 -05:00
2014-08-22 10:47:58 -04:00
2014-08-21 14:25:20 -07:00
2014-08-06 20:06:14 -07:00
2014-08-04 17:32:24 -07:00
2014-09-24 15:36:33 +01:00
2014-07-29 11:46:28 +03:00
2014-08-19 10:19:47 -05:00
2014-08-05 21:16:46 -07:00
2014-08-15 17:06:40 -04:00
2014-09-26 08:15:27 +01:00
2014-08-14 18:10:33 -06:00
2014-08-15 18:16:28 -06:00
2014-08-19 00:19:26 +02:00
2014-08-08 11:14:29 -07:00
2014-08-22 11:31:30 -07:00
2014-09-24 15:36:30 +01:00
2014-08-06 18:01:19 -07:00
2014-08-07 17:23:16 -07:00
2014-07-29 01:57:25 -07:00
2014-08-19 17:20:27 +10:00
2014-08-08 15:57:28 -07:00
2014-07-29 19:26:30 -05:00
2014-09-26 08:15:36 +01:00
2014-09-26 08:15:28 +01:00
2014-08-14 18:10:33 -06:00
2014-08-13 17:42:11 -06:00
2014-08-22 11:29:58 -07:00
2014-08-16 09:03:58 +01:00
2014-08-08 15:57:25 -07:00
2014-08-19 09:45:31 -05:00
2014-08-07 08:50:34 -07:00
2014-08-08 11:34:32 -07:00
2014-08-08 11:34:32 -07:00
2014-08-20 08:18:18 -07:00
2014-07-30 00:23:09 +02:00
2014-09-24 15:25:52 +01:00
2014-08-12 12:15:14 -06:00
2014-08-18 10:58:43 +02:00
2014-08-12 12:15:14 -06:00
2014-09-24 15:25:47 +01:00
2014-08-08 15:57:47 -07:00
2014-08-07 08:41:00 -07:00
2014-08-05 18:57:18 -07:00
2014-08-20 18:20:50 -05:00
2014-08-22 12:28:16 +09:00
2014-08-08 11:00:26 -07:00
2014-08-08 15:57:47 -07:00
2014-08-06 20:10:32 -07:00
2014-08-14 09:53:39 -06:00
2014-08-06 21:03:53 -07:00
2014-08-01 15:48:08 -07:00
2014-08-08 10:39:16 -06:00
2014-08-12 12:15:14 -06:00
2014-08-08 15:57:30 -07:00
2014-09-24 15:36:19 +01:00
2014-08-12 12:15:14 -06:00
2014-08-04 17:32:24 -07:00
2014-08-04 18:34:04 -07:00