Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5123117 authored by Jesper Juhl's avatar Jesper Juhl Committed by John W. Linville
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4fb25c59
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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);

	priv->cached_pri_fw = NULL;
	priv->cached_fw = NULL;
}