From: Dan Carpenter Date: Tue, 4 Nov 2014 10:37:59 +0000 (+0300) Subject: bnx2fc: fix an error code in _bnx2fc_create() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2043e1fd09c1896bb03a6e25b64baa84a30879c9;p=pandora-kernel.git bnx2fc: fix an error code in _bnx2fc_create() We should be returning an error code here instead of success. Either -ENODEV or -ENOMEM would work. There is also a failure message in printk(). Signed-off-by: Dan Carpenter Acked-by: Chad Dupuis Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed