Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit fd5cf3b4 authored by Murali Karicheri's avatar Murali Karicheri Committed by Vignesh Raghavendra
Browse files

net: hsr/prp: fix cppcheck 'warning: Clarify calculation precedence'


kernel test robot reported following warning:-

In file included from net/hsr/hsr_device.c:
net/hsr/hsr_device.c:465:21: warning: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
           IFF_ALLMULTI ? 1 : -1);
                        ^
This patch fixes the issue by adding parenthesis around the expression.

Signed-off-by: default avatarMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 2cfdf063
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment