Skip to content

Commit 8c14846

Browse files
weiyjdavem330
authored andcommitted
cxgb4: Simplify the return expression
Simplify the return expression. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5ab1fe7 commit 8c14846

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,6 @@ EXPORT_SYMBOL(cxgb4_create_server_filter);
29322932
int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid,
29332933
unsigned int queue, bool ipv6)
29342934
{
2935-
int ret;
29362935
struct filter_entry *f;
29372936
struct adapter *adap;
29382937

@@ -2946,11 +2945,7 @@ int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid,
29462945
/* Unlock the filter */
29472946
f->locked = 0;
29482947

2949-
ret = delete_filter(adap, stid);
2950-
if (ret)
2951-
return ret;
2952-
2953-
return 0;
2948+
return delete_filter(adap, stid);
29542949
}
29552950
EXPORT_SYMBOL(cxgb4_remove_server_filter);
29562951

0 commit comments

Comments
 (0)