net/qede/base: fix error code in resc allocation
authorRasesh Mody <rasesh.mody@cavium.com>
Fri, 23 Dec 2016 00:50:00 +0000 (16:50 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:52 +0000 (19:40 +0100)
commit3eb0add0c2f356bae45c8d03619953233f566e5a
treeb186eefa88d6eeaa3dbb8372b8c1fce60251f5e4
parenta1f761e16f774ed6eb4721d589bf3827e9519534
net/qede/base: fix error code in resc allocation

Fix to return error code ECORE_INVAL instead of 0 when EQ elements
is too large as done elsewhere in this function.

Fixes: 22d07d939c3c ("net/qede/base: update")

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_dev.c