summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-02-25 19:04:24 +0400
committerDavid S. Miller <davem@davemloft.net>2014-02-27 00:27:50 +0400
commit7d0445d66a7619e23257570daa794dbf1d89c2a6 (patch)
tree0b407352012532ea4382f7919298b7fb3a866f64 /Kbuild
parent8e165e20348b53583f6c6cb45865b89209f4aa13 (diff)
downloadlinux-7d0445d66a7619e23257570daa794dbf1d89c2a6.tar.xz
bnx2x: clamp num_queues to prevent passing a negative value
Use the clamp() macro to make the calculation of the number of queues slightly easier to understand. It also avoids a crash when someone accidentally passes a negative value in num_queues= module parameter. Signed-off-by: Michal Schmidt <mschmidt@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions