Re: [PATCH] sparc: fix warning on prom_getproperty in openprom.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx>
Date: Sun, 7 May 2006 16:24:50 +0100

> This patch resolves the following build warnings seen in 2.6.17-rc3:
> drivers/sbus/char/openprom.c:395: warning: ignoring return value of `prom_getproperty', declared with attribute warn_unused_result
> 
> Please apply.
> Martin
> 
> 	Signed-off-by: Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx>

The intention is correct but if we get an error from
prom_getproperty() then -EFAULT is not likely the appropiate thing to
return.  Perhaps -EINVAL or something like that.
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux