From: Michal Schmidt Date: Tue, 25 Feb 2014 15:04:24 +0000 (+0100) Subject: bnx2x: clamp num_queues to prevent passing a negative value X-Git-Tag: v3.15-rc1~113^2~264^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d0445d66a7619e23257570daa794dbf1d89c2a6;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed