Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1289853
| From | "Geyslan G. Bem" <geyslan@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [BUG] checkpatch warning default switch case |
| Date | 2015-12-11 20:40 +0100 |
| Message-ID | <qEBHQ-ir-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hello,
Running
scripts/checkpatch.pl -f drivers/usb/host/ehci-sched.c
I got this
...
ERROR: spaces required around that ':' (ctx:VxE)
#496: FILE: drivers/usb/host/ehci-sched.c:496:
+ default:
...
496: default:
ehci_dbg (ehci,
"periodic frame %d bogus type %d\n",
frame, type);
}
It seems a correct use of default switch case. Maybe the test concerns
to ternary conditional.
Let me know.
--
Regards,
Geyslan G. Bem
hackingbits.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[BUG] checkpatch warning default switch case "Geyslan G. Bem" <geyslan@gmail.com> - 2015-12-11 20:40 +0100
Re: [BUG] checkpatch warning default switch case Joe Perches <joe@perches.com> - 2015-12-11 21:10 +0100
Re: [BUG] checkpatch warning default switch case "Geyslan G. Bem" <geyslan@gmail.com> - 2015-12-11 21:30 +0100
Re: [BUG] checkpatch warning default switch case "Geyslan G. Bem" <geyslan@gmail.com> - 2015-12-11 23:00 +0100
Re: [BUG] checkpatch warning default switch case Joe Perches <joe@perches.com> - 2015-12-12 02:40 +0100
Re: [BUG] checkpatch warning default switch case "Geyslan G. Bem" <geyslan@gmail.com> - 2015-12-12 03:00 +0100
csiph-web