]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi:bt-bmc: Avoid unnecessary check
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 8 Apr 2020 11:59:58 +0000 (19:59 +0800)
committerCorey Minyard <cminyard@mvista.com>
Mon, 18 May 2020 11:32:02 +0000 (06:32 -0500)
commit4f040d0f9a9500c2fb5bc8273c04c5b8c5de5ccc
tree14108e681a42e08ae65885c97794fa8f79f95c7a
parenta20819a848cd39220dc3e8fc9bca50353b49e001
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>
drivers/char/ipmi/bt-bmc.c