Commit a8e07124 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

V4L/DVB: opera1: remove unneeded NULL check

"fw" is always a non-NULL pointer at this point, and anyway
release_firmware() accepts NULL pointers.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 028816bc
...@@ -483,9 +483,7 @@ static int opera1_xilinx_load_firmware(struct usb_device *dev, ...@@ -483,9 +483,7 @@ static int opera1_xilinx_load_firmware(struct usb_device *dev,
} }
} }
kfree(p); kfree(p);
if (fw) { release_firmware(fw);
release_firmware(fw);
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment