Re: [patch v2] checkpatch: complain about GW-BASIC style label names

2015-06-04 Thread Dan Carpenter
It's weird that you would defend GW-BASIC label names because you wouldn't defend code which does: int var1, var2, var4; Naming labels is useful. goto error9; goto err_cleanup_sysfs1; The second one is more clear. But it's better to look at it in context: drivers/hid/h

Re: [patch v2] checkpatch: complain about GW-BASIC style label names

2015-05-13 Thread Al Viro
On Wed, May 13, 2015 at 03:37:12PM +0300, Dan Carpenter wrote: > GW-BASIC style label names are annoying so we can warn about that in > checkpatch. The warnings look like: > > WARNING: 'fail2' isn't informative - prefer descriptive label names > #267: FILE: ./sound/ppc/beep.c:267: >

Re: [patch v2] checkpatch: complain about GW-BASIC style label names

2015-05-13 Thread One Thousand Gnomes
On Wed, 13 May 2015 15:16:13 +0200 David Sterba wrote: > On Wed, May 13, 2015 at 03:37:12PM +0300, Dan Carpenter wrote: > > GW-BASIC style label names are annoying so we can warn about that in > > checkpatch. The warnings look like: > > > > WARNING: 'fail2' isn't informative - prefer descri

Re: [patch v2] checkpatch: complain about GW-BASIC style label names

2015-05-13 Thread Dan Carpenter
You misunderstand. Although I am famous for hating out: labels, I would not introduce a checkpatch warning to complain about it. This only complains about GW-BASIC labels. out3: kfree(foo); out2: kfree(bar); out: kfree(baz); GW-BASIC label suck because they are meaningle

Re: [patch v2] checkpatch: complain about GW-BASIC style label names

2015-05-13 Thread David Sterba
On Wed, May 13, 2015 at 03:37:12PM +0300, Dan Carpenter wrote: > GW-BASIC style label names are annoying so we can warn about that in > checkpatch. The warnings look like: > > WARNING: 'fail2' isn't informative - prefer descriptive label names > #267: FILE: ./sound/ppc/beep.c:267: >