Commit dd0e7aab authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

net: emulex: benet: simplify the return expression of be_if_create()

Simplify the return expression.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e3bf53c
...@@ -4677,7 +4677,6 @@ static int be_if_create(struct be_adapter *adapter) ...@@ -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 en_flags = BE_IF_FLAGS_RSS | BE_IF_FLAGS_DEFQ_RSS;
u32 cap_flags = be_if_cap_flags(adapter); u32 cap_flags = be_if_cap_flags(adapter);
int status;
/* alloc required memory for other filtering fields */ /* alloc required memory for other filtering fields */
adapter->pmac_id = kcalloc(be_max_uc(adapter), adapter->pmac_id = kcalloc(be_max_uc(adapter),
...@@ -4700,13 +4699,8 @@ static int be_if_create(struct be_adapter *adapter) ...@@ -4700,13 +4699,8 @@ static int be_if_create(struct be_adapter *adapter)
en_flags &= cap_flags; en_flags &= cap_flags;
/* will enable all the needed filter flags in be_open() */ /* 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); &adapter->if_handle, 0);
if (status)
return status;
return 0;
} }
int be_update_queues(struct be_adapter *adapter) int be_update_queues(struct be_adapter *adapter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment