OSDN Git Service

staging: ks7010: make goto labels uniform
authorTobin C. Harding <me@tobin.cc>
Tue, 21 Mar 2017 02:37:09 +0000 (13:37 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:56:07 +0000 (08:56 +0100)
commitf283dd6901cad0d823cf469e71db5700d456d1f6
treed9aadd4c4e9936790b8e647eea8b465be7d26448
parent13b05e467d8f22c8ce871ffc7daa536df1beb0ce
staging: ks7010: make goto labels uniform

Driver uses different label forms for similar purposes. It would be
more clear if single use case has uniform label. 'out' is generic and
adds no meaning to label.

Documentation/process/coding-style.rst:
Choose label names which say what the goto does or why the goto
exists.

Rename labels so as to better describe what they do. If an execution
path only exists for the label on an error, prefix the label with
'err_'. If a non-error execution path exist do not use prefix.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c