]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
cxgb4: cleanup error code in setup_sge_queues_uld()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 May 2020 12:49:57 +0000 (15:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 18:32:59 +0000 (11:32 -0700)
commitbda6752f3de99e9d765638b89aacfb11c07cee06
tree6a6d8717bb930c70505d6dc255a2d58a12939e29
parentd36ceaef8fc2e4ede43de425a7f503013b500e7f
cxgb4: cleanup error code in setup_sge_queues_uld()

The caller doesn't care about the error codes, they only check for zero
vs non-zero.  Still, it's better to preserve the negative error codes
from alloc_uld_rxqs() instead of changing it to 1.  We can also return
directly if there is a failure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c