Searched hist:"5 f07809e" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm/mach-rpc/ |
H A D | ecard.c | 5f07809e Mon Apr 30 11:26:01 CDT 2012 Arnd Bergmann <arnd@arndb.de> ARM: rpc: check device_register return code in ecard_probe
device_register is marked __must_check, so we better propagate the error value by returning it from ecard_probe.
Without this patch, building rpc_defconfig results in:
arch/arm/mach-rpc/ecard.c: In function 'ecard_probe': arch/arm/mach-rpc/ecard.c:963:17: warning: ignoring return value of 'device_register', declared with attribute warn_unused_result [-Wunused-result]
Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Russell King <rmk+kernel@arm.linux.org.uk> 5f07809e Mon Apr 30 11:26:01 CDT 2012 Arnd Bergmann <arnd@arndb.de> ARM: rpc: check device_register return code in ecard_probe device_register is marked __must_check, so we better propagate the error value by returning it from ecard_probe. Without this patch, building rpc_defconfig results in: arch/arm/mach-rpc/ecard.c: In function 'ecard_probe': arch/arm/mach-rpc/ecard.c:963:17: warning: ignoring return value of 'device_register', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
|