staging: nvec: remove unneccessary 'else' after 'return' statement
Subsystems (3)
PATCH 1/1 staging: nvec: remove unneccessary 'else' after 'return' statement
Hi,
This patch fixes the following warning reported by checkpatch.pl:
WARNING: else is not generally useful after a break or return #235: FILE: drivers/staging/nvec/nvec.c:235:
Regards
Pawel Lebioda
drivers/staging/nvec/nvec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/nvec/nvec.c +1 -2
@@ -232,8 +232,7 @@ static size_t nvec_msg_size(struct nvec_msg *msg)return 2 ; else if (event_length == NVEC_3BYTES) return 3; - else - return 0; +return 0 ; }/**
Quoted 7 lines · Pawel Lebioda
Hi,
This patch fixes the following warning reported by checkpatch.pl:
WARNING: else is not generally useful after a break or return #235: FILE:
drivers/staging/nvec/nvec.c:235:
Quoted 6 lines
Regards
Pawel LebiodaSigned-off-by Pawel Lebioda <[email protected]>drivers/staging/nvec/nvec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Hi Pawel,
Please format your patches correctly. There should be no "Hi", no "Regards", etc. After the signed off should be a dashed line.
Use git format-patch to format patches and you can send them using git-send-email.
See Documentation/SubmittingPatches for more details
Thanks,
Signature · 6 lines
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
- If you don't I might ignore you.Marc Dietrich
maintainerRe: [PATCH] staging: nvec: remove unneccessary 'else' after 'return'statement
Quoted 15 lines · On Fri, 4 Jul 2014 22:59:41 +0200 Julian Andres Klode <[email protected]> wrote:
Quoted 7 lines · Pawel Lebioda
Hi,
This patch fixes the following warning reported by checkpatch.pl:
WARNING: else is not generally useful after a break or return #235: FILE:
drivers/staging/nvec/nvec.c:235:Quoted 6 lines
Regards
Pawel LebiodaSigned-off-by Pawel Lebioda <[email protected]>drivers/staging/nvec/nvec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Quoted 8 lines
Hi Pawel,
Please format your patches correctly. There should be no "Hi", no "Regards", etc. After the signed off should be a dashed line.
Use git format-patch to format patches and you can send them using git-send-email.
yes, this way you reduce some apply-burdon from Greg. Ideally, you would combine all patches (one patch per checkpatch warning) in a common thread like this:
git-format-patch --cover-letter --thread -s <first commit of your patches>
This way you could add some comments (if any) to the cover letter and just keep the plain checkpatch message in the other patches. This has also the advantage that the maintainers only have to ack the "cover letter".
Marc
Signature · 1 line
Marc Dietrich <[email protected]>