kernel_optimize_test/drivers/base
Jean Delvare d433201391 driver core: dev_get_drvdata: Don't check for NULL dev
There is no point in calling dev_get_drvdata without a valid device.
So checking for dev == NULL is pointless. If such a check is ever
needed - which I doubt - the driver should do it before calling
dev_get_drvdata.

We were returning NULL if dev was NULL, which the caller certainly did
not expect anyway, so that was only delaying the crash if the caller
is not paying attention.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-27 13:46:50 -07:00
..
power
regmap
attribute_container.c
base.h driver core: Move driver_data back to struct device 2014-05-27 12:37:18 -07:00
bus.c
class.c
component.c
container.c
core.c
cpu.c
dd.c driver core: dev_get_drvdata: Don't check for NULL dev 2014-05-27 13:46:50 -07:00
devres.c
devtmpfs.c
dma-buf.c
dma-coherent.c
dma-contiguous.c
dma-mapping.c
driver.c
firmware_class.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig kobject: Make support for uevent_helper optional. 2014-04-25 12:00:49 -07:00
Makefile
map.c
memory.c
module.c
node.c
pinctrl.c
platform.c of/irq: do irq resolution in platform_get_irq 2014-04-24 21:40:22 +01:00
reservation.c
soc.c
syscore.c
topology.c
transport_class.c