Re: [PATCH] Drivers: i2c: busses: Use max macro instead of ternary operator

2016-09-10 Thread Bhumika Goyal
On Sun, Sep 11, 2016 at 12:51 AM, Joe Perches wrote: > On Sun, 2016-09-11 at 00:38 +0530, Bhumika Goyal wrote: >> Replace ternary operators with macro 'max' as it is shorter >> and thus increases code readability. Macro max returns >> the maximum of the two compared values. >> Done using coccinel

Re: [PATCH] Drivers: i2c: busses: Use max macro instead of ternary operator

2016-09-10 Thread Joe Perches
On Sun, 2016-09-11 at 00:38 +0530, Bhumika Goyal wrote: > Replace ternary operators with macro 'max' as it is shorter > and thus increases code readability. Macro max returns > the maximum of the two compared values. > Done using coccinelle: > > @@ > type T; > T x; > T y; > @@ > ( > - x < y ? x :