* [PATCH -next] cxgb4: Simplify the return expression
@ 2016-08-20 15:32 Wei Yongjun
2016-08-21 22:23 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-08-20 15:32 UTC (permalink / raw)
To: Hariprasad S; +Cc: Wei Yongjun, netdev
Simplify the return expression.
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
---
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 2bb804c..5a82eea 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -2922,7 +2922,6 @@ EXPORT_SYMBOL(cxgb4_create_server_filter);
int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid,
unsigned int queue, bool ipv6)
{
- int ret;
struct filter_entry *f;
struct adapter *adap;
@@ -2936,11 +2935,7 @@ int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid,
/* Unlock the filter */
f->locked = 0;
- ret = delete_filter(adap, stid);
- if (ret)
- return ret;
-
- return 0;
+ return delete_filter(adap, stid);
}
EXPORT_SYMBOL(cxgb4_remove_server_filter);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] cxgb4: Simplify the return expression
2016-08-20 15:32 [PATCH -next] cxgb4: Simplify the return expression Wei Yongjun
@ 2016-08-21 22:23 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-08-21 22:23 UTC (permalink / raw)
To: weiyj.lk; +Cc: hariprasad, netdev
From: Wei Yongjun <weiyj.lk@gmail.com>
Date: Sat, 20 Aug 2016 15:32:41 +0000
> Simplify the return expression.
>
> Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-21 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-20 15:32 [PATCH -next] cxgb4: Simplify the return expression Wei Yongjun
2016-08-21 22:23 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).