提交 53c0ad52 编写于 作者: J Jesper Juhl 提交者: Jiri Kosina

tehuti: delete redundant NULL check before release_firmware()

release_firmware() checks for NULL pointers - no need to test before
the call.
Signed-off-by: NJesper Juhl <jj@chaosbits.net>
Signed-off-by: NAndy Gospodarek <andy@greyhouse.net>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 62baaf34
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册