mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] kfree cleanup: misc remaining drivers
This is the remaining misc drivers/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in misc files in drivers/. Signed-off-by: Jesper Juhl <[email protected]> Acked-by: Aristeu Sergio Rozanski Filho <[email protected]> Acked-by: Roland Dreier <[email protected]> Acked-by: Pierre Ossman <[email protected]> Acked-by: Jean Delvare <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Acked-by: Len Brown <[email protected]> Acked-by: "Antonino A. Daplas" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2ea7533060
commit
6044ec8882
24 changed files with 83 additions and 151 deletions
|
|
@ -976,11 +976,9 @@ w83781d_detect_subclients(struct i2c_adapter *adapter, int address, int kind,
|
|||
ERROR_SC_3:
|
||||
i2c_detach_client(data->lm75[0]);
|
||||
ERROR_SC_2:
|
||||
if (data->lm75[1])
|
||||
kfree(data->lm75[1]);
|
||||
kfree(data->lm75[1]);
|
||||
ERROR_SC_1:
|
||||
if (data->lm75[0])
|
||||
kfree(data->lm75[0]);
|
||||
kfree(data->lm75[0]);
|
||||
ERROR_SC_0:
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue