]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50a4af9a5f13454d459385ba80baa7537a6a2a59
treefc90bd5c3971490ff783ffbb1e2c07f997307301
parentcc2f7d19d1dc97f225a476329e44c72b242132f8
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