]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitadb5395966664f85757f702cfae4614fa862f6ed
treed9aadd4c4e9936790b8e647eea8b465be7d26448
parent86c42aba19c5ffa92c6868e1f35402c32739f46e
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