mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 08:39:52 +00:00
wireless, orinoco: release_firmware() tests for NULL, remove explicit tests before calls
It is redundant to test for NULL pointers before calling release_firmware() since the function does its own NULL test. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
4fb25c5914
commit
f512311709
@ -379,11 +379,8 @@ void orinoco_cache_fw(struct orinoco_private *priv, int ap)
|
||||
|
||||
void orinoco_uncache_fw(struct orinoco_private *priv)
|
||||
{
|
||||
if (priv->cached_pri_fw)
|
||||
release_firmware(priv->cached_pri_fw);
|
||||
if (priv->cached_fw)
|
||||
release_firmware(priv->cached_fw);
|
||||
|
||||
release_firmware(priv->cached_pri_fw);
|
||||
release_firmware(priv->cached_fw);
|
||||
priv->cached_pri_fw = NULL;
|
||||
priv->cached_fw = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user