Re: [PATCH] ib_srp: Let compiler ignore the useless debug code

2017-03-05 Thread Leon Romanovsky
On Fri, Feb 24, 2017 at 04:16:31PM +, Bart Van Assche wrote: > On Fri, 2017-02-24 at 16:44 +0800, Minfei Huang wrote: > > "if (0)" is used to make this block of debug code not be executed. There > > is a more elegant way to let compiler ignore this code, using > > "#if 0 .. #endif" instead. > >

Re: [PATCH] ib_srp: Let compiler ignore the useless debug code

2017-02-24 Thread Bart Van Assche
On Fri, 2017-02-24 at 16:44 +0800, Minfei Huang wrote: > "if (0)" is used to make this block of debug code not be executed. There > is a more elegant way to let compiler ignore this code, using > "#if 0 .. #endif" instead. > > Although it may be optimised by some compilers with specified parameter