[openib-general] 0 op factor
Libor Michalek
libor at topspin.com
Thu May 5 17:21:22 PDT 2005
On Thu, May 05, 2005 at 05:58:03PM +0200, Bernhard Fischer wrote:
> Hi,
>
> I forgot, but what's the purpose of statements like:
>
> $ egrep -ri "[^[:digit:]|\.]0[[:space:]]*[-+*/]" *|egrep -v "(\.(svn-base|txt):|/\*)"
> infiniband/ulp/sdp/sdp_inet.c: * flag: 0 - recv shutdown
> infiniband/ulp/sdp/sdp_actv.c: sdp_iocb_q_cancel_all(conn, (0 - error));
> infiniband/ulp/sdp/sdp_actv.c: sdp_cm_actv_error(conn, (0 - result));
> infiniband/ulp/sdp/sdp_actv.c: sdp_cm_actv_error(conn, (0 - status));
> infiniband/ulp/sdp/sdp_pass.c: sdp_iocb_q_cancel_all(conn, (0 - error));
> infiniband/ulp/sdp/sdp_pass.c: sdp_cm_pass_error(conn, (0 - result));
>
> Could somebody please elaborate?
No point other then the obvious, changing the sign of the variables
value. It's just a style convention that I have no problem changing.
-Libor
More information about the general
mailing list