Commit c3946506 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: remove unnecessary complication from delete_vbus_device

Take out the variable used to compute a comparison against NULL, and
just use the parameter directly.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 911e213e
......@@ -400,10 +400,9 @@ delete_vbus(struct del_vbus_guestpart *delparams)
static int
delete_vbus_device(struct device *vbus, void *data)
{
int checkforroot = (data != NULL);
struct device *dev = &virtpci_rootbus_device;
if ((checkforroot) && match_busid(vbus, (void *)BUS_ID(dev))) {
if ((data) && match_busid(vbus, (void *)BUS_ID(dev))) {
/* skip it - don't delete root bus */
return 0; /* pretend no error */
}
......
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