mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
caif: Remove redundant null check before kfree in cfctrl.c
kfree on a null pointer is a no-op. Signed-off-by: Sachin Kamat <[email protected]> Acked-by: Sjur Brændeland <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4babfb9b27
commit
973b1b9a45
1 changed files with 1 additions and 2 deletions
|
|
@ -515,8 +515,7 @@ static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt)
|
|||
client_layer : NULL);
|
||||
}
|
||||
|
||||
if (req != NULL)
|
||||
kfree(req);
|
||||
kfree(req);
|
||||
|
||||
spin_unlock_bh(&cfctrl->info_list_lock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue