mirror of https://gitee.com/openkylin/linux.git
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:
parent
62baaf34dd
commit
53c0ad522e
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue