i2c: efm32: Avoid unnecessary check in efm32_i2c_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 15 Apr 2020 14:06:40 +0000 (22:06 +0800)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 May 2020 15:08:19 +0000 (17:08 +0200)
commitd1fdeb314e82fb782ab918ea6bfe41b429343725
tree08dfbbf4359143bbf29fb1df6ce567874a60b2be
parent79f7ab3a64fd92b86ebc992b333815400942a3b7
i2c: efm32: Avoid unnecessary check in efm32_i2c_probe()

The function efm32_i2c_probe() is only called with an
openfirmware platform device.Therefore there is no need
to check that it has an openfirmware node.

Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-efm32.c