driver core: use *switch* statement in really_probe()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 17 Jan 2015 19:14:41 +0000 (22:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 12:40:31 +0000 (13:40 +0100)
commitbb2b40754ff4b2fffd8015ac96c45269cb54ee79
treefc90bd5c3971490ff783ffbb1e2c07f997307301
parentba61af6f3e4766c76aec0b5e7f2bb8277e1acdd0
driver core: use *switch* statement in really_probe()

There are series of comparisons of the 'ret' variable on the failure path of
really_probe(),  so the  *switch* statement  seems  more appropriate there.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c