mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
radeon_cp: Remove unneeded tests for NULL before calling release_firmware()
release_firmware() does its own tests for NULL pointers so there's no need to explicitly test before calling it. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
42a6bd2006
commit
c69a6ca1a4
@ -1827,14 +1827,10 @@ void radeon_do_release(struct drm_device * dev)
|
||||
r600_do_cleanup_cp(dev);
|
||||
else
|
||||
radeon_do_cleanup_cp(dev);
|
||||
if (dev_priv->me_fw) {
|
||||
release_firmware(dev_priv->me_fw);
|
||||
dev_priv->me_fw = NULL;
|
||||
}
|
||||
if (dev_priv->pfp_fw) {
|
||||
release_firmware(dev_priv->pfp_fw);
|
||||
dev_priv->pfp_fw = NULL;
|
||||
}
|
||||
release_firmware(dev_priv->me_fw);
|
||||
dev_priv->me_fw = NULL;
|
||||
release_firmware(dev_priv->pfp_fw);
|
||||
dev_priv->pfp_fw = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user