diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-02-04 11:28:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-05 00:06:47 -0800 |
commit | 0b5b6beea1a3f2b75e5b5baf9df073bf709f9297 (patch) | |
tree | c5dee235410798ae2e951fb66b6eaeee9bc74ddb /drivers/net | |
parent | 3a336cb17183b29827fdffaffb5e62f8912f5ca1 (diff) | |
download | linux-0b5b6beea1a3f2b75e5b5baf9df073bf709f9297.tar.bz2 |
cxgb4: Delete an unnecessary check before the function call "release_firmware"
The release_firmware() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 041742b5e0e8..5db5b4f7b94d 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -5142,8 +5142,7 @@ static int adap_init0(struct adapter *adap) state, &reset); /* Cleaning up */ - if (fw != NULL) - release_firmware(fw); + release_firmware(fw); t4_free_mem(card_fw); if (ret < 0) |