]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: initialize sysminor to avoid compiler warning
authorEd Cashin <ecashin@coraid.com>
Thu, 29 Nov 2012 03:19:10 +0000 (14:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:53 +0000 (16:23 +1100)
commitddc37e1e251bd045df95f76a70ee72fb1e389934
tree4dd02bd5c938ff7a01777367631912f374f3acb8
parentbf3b55bee6d74b7326da1e97309a434186799825
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>
drivers/block/aoe/aoedev.c