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>
This commit is contained in:
Jesper Juhl 2012-04-09 22:50:42 +02:00 committed by Jiri Kosina
parent 62baaf34dd
commit 53c0ad522e
1 changed files with 2 additions and 2 deletions

View File

@ -341,8 +341,8 @@ static int bdx_fw_load(struct bdx_priv *priv)
out:
if (master)
WRITE_REG(priv, regINIT_SEMAPHORE, 1);
if (fw)
release_firmware(fw);
release_firmware(fw);
if (rc) {
netdev_err(priv->ndev, "firmware loading failed\n");