]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage: simplify `rdev` handling in Manage_subdevs.
authorNeilBrown <neilb@suse.de>
Mon, 11 Aug 2014 00:22:24 +0000 (10:22 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 11 Aug 2014 00:22:24 +0000 (10:22 +1000)
commit5dffd09d24c3dcc690677910219254e0703503e3
treef18c16bf6e973c5bbf32823f3cf3bfaf5d919231
parente2efe9e7bc73307f74a4c2e2197d6d4498dd46f0
Manage: simplify `rdev` handling in Manage_subdevs.

The only use 'struct stat stb' to get the 'rdev', and sometimes
we don't even use 'stat'.
So make 'rdev' a stand-alone variable, and only declare stb'
when we actually need it.

Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c