Skip to content
Commit 454ca604 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by Tony Luck
Browse files

[IA64] Check return from device_register() in cx_device_register()



The device_register() is declared with must_check, causing this:

arch/ia64/sn/kernel/tiocx.c: In function 'cx_device_register':
arch/ia64/sn/kernel/tiocx.c:210:17: warning: ignoring return value of 'device_register', declared with attribute warn_unused_result

Check the return value, and free resources if it fails.

Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent c19ce0ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment