android_kernel_samsung_msm8976/drivers/base
Markus Elfring 22127365e3 driver core: Delete an unnecessary check before the function call "put_device"
commit 5f0163a5ee9cc7c59751768bdfd94a73186debba upstream.

The put_device() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[wt: backported only to ease next patch as suggested by Jiri]

Change-Id: I06382c480dac9a93c36d3dd30c62a546a8057f73
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:42:21 +02:00
..
power
regmap
attribute_container.c
base.h
bus.c
class.c
core.c
cpu.c
dd.c
devres.c
devtmpfs.c
dma-buf.c
dma-coherent.c
dma-contiguous.c
dma-mapping.c
dma-removed.c
driver.c
firmware.c
firmware_class.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c
module.c
node.c
pinctrl.c
platform.c
soc.c
syscore.c
topology.c
transport_class.c