Re: svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-06-02 Thread Bruce Evans
On Fri, 1 Jun 2012, John Baldwin wrote: On Friday, June 01, 2012 12:39:48 pm Eitan Adler wrote: On 1 June 2012 07:24, John Baldwin wrote: This is why I personally loathe assignment side effects in boolean expressions for control flow. I tend to write this sort of thing instead as: ch

Re: svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-06-01 Thread John Baldwin
On Friday, June 01, 2012 12:39:48 pm Eitan Adler wrote: > On 1 June 2012 07:24, John Baldwin wrote: > > This is why I personally loathe assignment side effects in boolean > > expressions > > for control flow. I tend to write this sort of thing instead as: > > > >channel->dtr_arr[dtr_inde

Re: svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-06-01 Thread Eitan Adler
On 1 June 2012 07:24, John Baldwin wrote: > This is why I personally loathe assignment side effects in boolean expressions > for control flow.  I tend to write this sort of thing instead as: > >        channel->dtr_arr[dtr_index].dtr = dtrh; >        if (dtrh != NULL) { Same here. I was told to u

Re: svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-06-01 Thread Bruce Evans
On Fri, 1 Jun 2012, John Baldwin wrote: On Friday, June 01, 2012 2:23:42 am Eitan Adler wrote: On 31 May 2012 22:13, Bruce Evans wrote: This seems to change a style by (excessive parentheses for a normal equality test) into logic bug (assignment of dtrh instead of compariing with it). inten

Re: svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-06-01 Thread John Baldwin
On Friday, June 01, 2012 2:23:42 am Eitan Adler wrote: > On 31 May 2012 22:13, Bruce Evans wrote: > > This seems to change a style by (excessive parentheses for a normal > > equality test) into logic bug (assignment of dtrh instead of compariing > > with it). > > intentional - perhaps my commit m

Re: svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-06-01 Thread Eitan Adler
On 31 May 2012 22:13, Bruce Evans wrote: > This seems to change a style by (excessive parentheses for a normal > equality test) into logic bug (assignment of dtrh instead of compariing > with it). intentional - perhaps my commit message was poorly worded. The comment above says 283 /* 28

Re: svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-05-31 Thread Bruce Evans
On Fri, 1 Jun 2012, Eitan Adler wrote: Author: eadler Date: Fri Jun 1 04:23:20 2012 New Revision: 236377 URL: http://svn.freebsd.org/changeset/base/236377 Log: Fix warning generated by clang; warning: equality comparison with extraneous parentheses [-Wparentheses-equality] R

svn commit: r236377 - head/sys/dev/vxge/vxgehal

2012-05-31 Thread Eitan Adler
Author: eadler Date: Fri Jun 1 04:23:20 2012 New Revision: 236377 URL: http://svn.freebsd.org/changeset/base/236377 Log: Fix warning generated by clang; warning: equality comparison with extraneous parentheses [-Wparentheses-equality] Reported by: arundel Reviewed by: g