diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-17 21:22:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-20 06:26:06 +0200 |
commit | 44f71cef92eb65bc4382ef3fb04a8e1437bda2d7 (patch) | |
tree | f453642fb4b909555ee3134edd9c3dd929854440 /drivers/net/irda | |
parent | hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event (diff) | |
download | linux-44f71cef92eb65bc4382ef3fb04a8e1437bda2d7.tar.xz linux-44f71cef92eb65bc4382ef3fb04a8e1437bda2d7.zip |
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; |