diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-17 21:22:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-19 21:26:06 -0700 |
commit | 44f71cef92eb65bc4382ef3fb04a8e1437bda2d7 (patch) | |
tree | f453642fb4b909555ee3134edd9c3dd929854440 /drivers/net/irda | |
parent | 3a494e710367c0a233d86bcde9853781859fc008 (diff) |
drivers/net/irda/kingsun-sir.c: remove null test before kfree
Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: netdev@vger.kernel.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/kingsun-sir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/irda/kingsun-sir.c b/drivers/net/irda/kingsun-sir.c index 96fe3659012d..e638893e98a9 100644 --- a/drivers/net/irda/kingsun-sir.c +++ b/drivers/net/irda/kingsun-sir.c @@ -553,8 +553,8 @@ static int kingsun_probe(struct usb_interface *intf, return 0; free_mem: - if (kingsun->out_buf) kfree(kingsun->out_buf); - if (kingsun->in_buf) kfree(kingsun->in_buf); + kfree(kingsun->out_buf); + kfree(kingsun->in_buf); free_netdev(net); err_out1: return ret; |