forked from Minki/linux
staging/csr: remove firmware pointer check before giving to release_firmware
we do a check of firmware pointer against the NULL value before we give it to the release_firmware. as release_firmware is actually having a check against NULL, its not needed here. Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2dd58c9d8d
commit
08fb73c1c8
@ -402,9 +402,7 @@ int uf_release_firmware_files(unifi_priv_t *priv)
|
||||
int uf_release_firmware(unifi_priv_t *priv, struct dlpriv *to_free)
|
||||
{
|
||||
if (to_free != NULL) {
|
||||
if (to_free->fw_desc != NULL) {
|
||||
release_firmware((const struct firmware *)to_free->fw_desc);
|
||||
}
|
||||
release_firmware((const struct firmware *)to_free->fw_desc);
|
||||
to_free->fw_desc = NULL;
|
||||
to_free->dl_data = NULL;
|
||||
to_free->dl_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user