lkml.org 
[lkml]   [2006]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] taskstats: factor out reply assembling
On 11/02, Balbir Singh wrote:
>
> Oleg Nesterov wrote:
> > +
> > + aggr = TASKSTATS_TYPE_AGGR_TGID;
> > + if (type == TASKSTATS_TYPE_PID)
> > + aggr = TASKSTATS_TYPE_AGGR_PID;
>
> How about using
>
> aggr = (type == TASKSTATS_TYPE_PID) ? TASKSTATS_TYPE_AGGR_PID :
> TASKSTATS_TYPE_AGGR_TGID;

I personally think this is much better. In fact, i did exactly same, but
then changed it because (I think) CodingStyle police doesn't like '?:'.

Or it does?

Oleg.

-
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/

\
 
 \ /
  Last update: 2006-11-02 14:27    [W:0.344 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site