summaryrefslogtreecommitdiffstats
path: root/net/strparser
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-08-01 09:10:37 +0200
committerDavid S. Miller <davem@davemloft.net>2018-08-01 19:00:06 +0200
commitbd707f17efc9e5dfc0fd05370cb89d2ee41d3558 (patch)
tree5453348824c494cbba8b6c8bde52bdc6eb698c62 /net/strparser
parentip_gre: remove redundant variables t_hlen (diff)
downloadlinux-bd707f17efc9e5dfc0fd05370cb89d2ee41d3558.tar.xz
linux-bd707f17efc9e5dfc0fd05370cb89d2ee41d3558.zip
strparser: remove redundant variable 'rd_desc'
Variable 'rd_desc' is being assigned but never used, so can be removed. fix this clang warning: net/strparser/strparser.c:411:20: warning: variable ‘rd_desc’ set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/strparser')
-rw-r--r--net/strparser/strparser.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/strparser/strparser.c b/net/strparser/strparser.c
index 3a512936eea9..da1a676860ca 100644
--- a/net/strparser/strparser.c
+++ b/net/strparser/strparser.c
@@ -408,8 +408,6 @@ EXPORT_SYMBOL_GPL(strp_data_ready);
static void do_strp_work(struct strparser *strp)
{
- read_descriptor_t rd_desc;
-
/* We need the read lock to synchronize with strp_data_ready. We
* need the socket lock for calling strp_read_sock.
*/
@@ -421,8 +419,6 @@ static void do_strp_work(struct strparser *strp)
if (strp->paused)
goto out;
- rd_desc.arg.data = strp;
-
if (strp_read_sock(strp) == -ENOMEM)
queue_work(strp_wq, &strp->work);