Re: [PATCH 2/2] [condingstyle] Add chapter on tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stefan Richter wrote:
Auke Kok wrote:
+If you give your variables and pointers good names, there is never a need
+to compare the value stored in that variable to NULL or true/false, so
+omit all that and keep it short.

I agree with this in principle.  But do we have to standardize it?

yes, I think so. Not only does it remove useless fluff but it forces you to pick your function and variable names decently. It really doesn't hurt to mention it especially when you see how many drivers have copied bad style over without knowing better. Now we can refer them to the CodingStyle doc right away.

Auke
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux