From: Tom Rini Date: Sat, 28 Nov 2015 13:04:42 +0000 (-0500) Subject: qbman_portal.c: Update BUG_ON() call in qbman_swp_mc_submit X-Git-Tag: v2016.01-rc3~23^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1f6be5ac8d657e312528ec3c4138c22c54d3f12;p=u-boot qbman_portal.c: Update BUG_ON() call in qbman_swp_mc_submit With gcc-5.x we get a warning about the ambiguity of BUG_ON(!a != b) and becomes BUG_ON((!a) != b). In this case reading of the function leads to us wanting to rewrite this as BUG_ON(a != b). Cc: Prabhakar Kushwaha Cc: Geoff Thorpe Cc: Haiying Wang Cc: Roy Pledge Cc: York Sun Signed-off-by: Tom Rini Reviewed-by: Bin Meng Reviewed-by: York Sun --- diff --git a/drivers/net/fsl-mc/dpio/qbman_portal.c b/drivers/net/fsl-mc/dpio/qbman_portal.c index 5fa8d953e5..449ff8a8ba 100644 --- a/drivers/net/fsl-mc/dpio/qbman_portal.c +++ b/drivers/net/fsl-mc/dpio/qbman_portal.c @@ -117,7 +117,7 @@ void qbman_swp_mc_submit(struct qbman_swp *p, void *cmd, uint32_t cmd_verb) { uint32_t *v = cmd; #ifdef QBMAN_CHECKING - BUG_ON(!p->mc.check != swp_mc_can_submit); + BUG_ON(p->mc.check != swp_mc_can_submit); #endif lwsync(); /* TBD: "|=" is going to hurt performance. Need to move as many fields