aoe: initialize sysminor to avoid compiler warning
authorEd Cashin <ecashin@coraid.com>
Tue, 18 Dec 2012 00:04:04 +0000 (16:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:25 +0000 (17:15 -0800)
commit10935d052eef9441a551571ff5853f84a00b2fd4
tree921ffe3962209af875358ee164dc6b3c62802f5c
parente0b2bbab0b569590e27161290f6ea549248356df
aoe: initialize sysminor to avoid compiler warning

Because the minor_get and related functions use the return values for
errors, the compiler doesn't know that sysminor will always either 1) be
initialized in aoedev_by_aoeaddr by the call to minor_get, or 2) be
unused as the "goto out" is executed.

This patch avoids the compiler warning.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/aoe/aoedev.c