mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
ipmi:bt-bmc: Avoid unnecessary check
bt_bmc_probe() is only called with an openfirmware platform device. Therefore there is no need to check that the passed in device is NULL or that it has an openfirmware node. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Message-Id: <20200408115958.2848-1-tangbin@cmss.chinamobile.com> [Fixed the title up a bit.] Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
b9bbe6ed63
commit
0b671eed0c
@ -430,9 +430,6 @@ static int bt_bmc_probe(struct platform_device *pdev)
|
||||
struct device *dev;
|
||||
int rc;
|
||||
|
||||
if (!pdev || !pdev->dev.of_node)
|
||||
return -ENODEV;
|
||||
|
||||
dev = &pdev->dev;
|
||||
dev_info(dev, "Found bt bmc device\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user