]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] Remove printk noise on unimplemented SAL_PHYSICAL_ID_INFO
authorAlex Chiang <achiang@hp.com>
Thu, 24 Apr 2008 18:57:08 +0000 (12:57 -0600)
committerTony Luck <tony.luck@intel.com>
Tue, 29 Apr 2008 20:51:28 +0000 (13:51 -0700)
commit6a3c5e1b75636923350f94026586e8d03abf49ed
treeb8c3876d9d9fe5b7896e1010bd038104a9fc630c
parent496c9e8a8b37b9a7f959f078c1ee8d95460c005e
[IA64] Remove printk noise on unimplemented SAL_PHYSICAL_ID_INFO

Commit 7a19ba3f228a6a3bb638b0f598a2b7c8120a52cc changed the flow of
control when calling PAL_LOGICAL_TO_PHYSICAL and SAL_PHYSICAL_ID_INFO.
With the change, if a platform did not implement the latter, a useless
printk would appear in the boot log:

ia64_sal_pltid failed with -1

So let's check the return code and only printk on a true error, and do
not print anything in the unimplemented case. While we're in there,
clean up some stylistic issues too.

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/smpboot.c