drivers/staging/rdma/hfi1/sdma.c:740: bad if test ?

From: David Binderman <hidden>
Date: 2015-09-12 03:40:22

Hello there,

drivers/staging/rdma/hfi1/sdma.c:740:17: warning: logical ‘and’ of mutually exclusive tests is always false [-Wlogical-op]

Source code is

    if (count < 64 && count> 32768)
        return SDMA_DESCQ_CNT;

Maybe better code

    if (count < 64 || count> 32768)
        return SDMA_DESCQ_CNT;


Regards

David Binderman

 		 	   		  --
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help