[lkml]   [2013]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: checkpatch guide for newbies
On Tue, Sep 24, 2013 at 09:29:49PM +0200, Peter Senna Tschudin wrote:
> I was about to disagree because I've never seen variables named a, b
> or c, but I found that there are at least 2238 variables named a, b or
> c in linux-next. This is not good.

In XGIfb_mode_rate_to_ddata() we have:

int B, C, D, F, temp, j;

The A and E variables were removed when the code was refactored. ;P
Places like this are fairly rare in the kernel outside of the staging/

There are lots of times where a single letter variable name is very

char c;

C is terse. This is explained in Documentation/CodingStyle.

dan carpenter

 \ /
  Last update: 2013-09-24 22:21    [W:0.054 / U:5.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site