diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-09 10:19:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-12-10 02:05:36 +0100 |
commit | dd0e7aabcad14cf0a97c782737e675a348c11984 (patch) | |
tree | 42b1a772628e2abc76738be5e4eb7f3cfc4f93e4 /drivers/net/ethernet/emulex | |
parent | net: marvell: octeontx2: simplify the return expression of rvu_npa_init() (diff) | |
download | linux-dd0e7aabcad14cf0a97c782737e675a348c11984.tar.xz linux-dd0e7aabcad14cf0a97c782737e675a348c11984.zip |
net: emulex: benet: simplify the return expression of be_if_create()
Simplify the return expression.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 676e437d78f6..d402d83d9edd 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -4677,7 +4677,6 @@ static int be_if_create(struct be_adapter *adapter) { u32 en_flags = BE_IF_FLAGS_RSS | BE_IF_FLAGS_DEFQ_RSS; u32 cap_flags = be_if_cap_flags(adapter); - int status; /* alloc required memory for other filtering fields */ adapter->pmac_id = kcalloc(be_max_uc(adapter), @@ -4700,13 +4699,8 @@ static int be_if_create(struct be_adapter *adapter) en_flags &= cap_flags; /* will enable all the needed filter flags in be_open() */ - status = be_cmd_if_create(adapter, be_if_cap_flags(adapter), en_flags, + return be_cmd_if_create(adapter, be_if_cap_flags(adapter), en_flags, &adapter->if_handle, 0); - - if (status) - return status; - - return 0; } int be_update_queues(struct be_adapter *adapter) |