aboutsummaryrefslogtreecommitdiffstats
path: root/net/strparser
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-08-01 03:10:37 -0400
committerDavid S. Miller <davem@davemloft.net>2018-08-01 13:00:06 -0400
commitbd707f17efc9e5dfc0fd05370cb89d2ee41d3558 (patch)
tree5453348824c494cbba8b6c8bde52bdc6eb698c62 /net/strparser
parent1296ee8ffc74fea4350c756f722000211b38400d (diff)
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);
408 408
409static void do_strp_work(struct strparser *strp) 409static void do_strp_work(struct strparser *strp)
410{ 410{
411 read_descriptor_t rd_desc;
412
413 /* We need the read lock to synchronize with strp_data_ready. We 411 /* We need the read lock to synchronize with strp_data_ready. We
414 * need the socket lock for calling strp_read_sock. 412 * need the socket lock for calling strp_read_sock.
415 */ 413 */
@@ -421,8 +419,6 @@ static void do_strp_work(struct strparser *strp)
421 if (strp->paused) 419 if (strp->paused)
422 goto out; 420 goto out;
423 421
424 rd_desc.arg.data = strp;
425
426 if (strp_read_sock(strp) == -ENOMEM) 422 if (strp_read_sock(strp) == -ENOMEM)
427 queue_work(strp_wq, &strp->work); 423 queue_work(strp_wq, &strp->work);
428 424