Re: uninitialized variable in mmc_blk_issue_secdiscard_rq()

Dan Carpenter
2011-12-06T08:15:20Z

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

On Tue, Dec 06, 2011 at 11:08:59AM +0300, Dan Carpenter wrote:
> There is a new gcc warning in this function:
>
> drivers/mmc/card/block.c:836:18: warning: ‘arg’ may be used uninitialized in this function [-Wuninitialized]
>

Sorry for the bad subject. The email escaped before it should have.

Same thing for "nr" and "from".

drivers/mmc/card/block.c:835:6: warning: ‘nr’ may be used uninitialized in this function [-Wuninitialized]
drivers/mmc/card/block.c:835:6: warning: ‘from’ may be used uninitialized in this function [-Wuninitialized]

regards,
dan carpenter

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]