diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 16:50:42 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-30 07:21:10 -0400 |
commit | 53c0ad522e215251f55623e80b921129aafa0d48 (patch) | |
tree | 12ec8b182da710a4cffd1bbdc30717d8384fdea4 /drivers/net/ethernet/tehuti | |
parent | 62baaf34dd6cbd3bb5357972789edd2d7d70c206 (diff) |
tehuti: delete redundant NULL check before release_firmware()
release_firmware() checks for NULL pointers - no need to test before
the call.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/net/ethernet/tehuti')
-rw-r--r-- | drivers/net/ethernet/tehuti/tehuti.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index ad973ffc9ff3..a445e777f086 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c | |||
@@ -341,8 +341,8 @@ static int bdx_fw_load(struct bdx_priv *priv) | |||
341 | out: | 341 | out: |
342 | if (master) | 342 | if (master) |
343 | WRITE_REG(priv, regINIT_SEMAPHORE, 1); | 343 | WRITE_REG(priv, regINIT_SEMAPHORE, 1); |
344 | if (fw) | 344 | |
345 | release_firmware(fw); | 345 | release_firmware(fw); |
346 | 346 | ||
347 | if (rc) { | 347 | if (rc) { |
348 | netdev_err(priv->ndev, "firmware loading failed\n"); | 348 | netdev_err(priv->ndev, "firmware loading failed\n"); |