Re: [PATCH] openprom: fix uninitialized warnings

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

 



From: Sam Ravnborg <sam@xxxxxxxxxxxx>
Date: Sun, 24 Apr 2016 15:34:27 +0200

> From: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Date: Sun, 24 Apr 2016 15:24:33 +0200
> Subject: [PATCH 1/1] openprom: fix warning
> 
> Fix following warnings:
> openprom.c:510:2: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
> openprom.c:503:3: warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized]
> openprom.c:459:8: warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized]
> openprom.c:422:7: warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized]
> 
> Fixed by introducing PTR_ERR etc.
> This simplified the code as a nice side effect.
> 
> Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>

Applied.
--
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