From: YueHaibing Date: Wed, 1 Aug 2018 07:10:37 +0000 (+0800) Subject: strparser: remove redundant variable 'rd_desc' X-Git-Tag: v4.19~410^2~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd707f17efc9e5dfc0fd05370cb89d2ee41d3558;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/strparser/strparser.c b/net/strparser/strparser.c index 3a51293..da1a676 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);