[Devel] [PATCH 10/10] get_num_cpu(): refactored
Andrew Vagin
avagin at parallels.com
Tue May 7 03:36:56 PDT 2013
On Tue, May 07, 2013 at 06:17:17PM +0800, Igor M Podlesny wrote:
> >>
> >> - if ((fd = fopen(PROCCPU, "r")) == NULL) {
> >> + if (NULL == fd) {
> >
> > Pls, follow the current coding style.
> > if (fd === NULL)
>
> Somebody suffers from too much PHP, too much, doesn't he? )
WTF? Look at https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/.
I recommend you to read these sources before sleeping for one an hour.
More information about the Devel
mailing list