From patchwork Wed Nov 30 21:39:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 9454983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 50E4260585 for ; Wed, 30 Nov 2016 21:40:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43422223A4 for ; Wed, 30 Nov 2016 21:40:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36330284A1; Wed, 30 Nov 2016 21:40:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCF57223A4 for ; Wed, 30 Nov 2016 21:40:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758887AbcK3Vji (ORCPT ); Wed, 30 Nov 2016 16:39:38 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36232 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754165AbcK3Vje (ORCPT ); Wed, 30 Nov 2016 16:39:34 -0500 Received: by mail-wm0-f46.google.com with SMTP id g23so281216537wme.1 for ; Wed, 30 Nov 2016 13:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/0YFvE1Rhs/pPbXbLOn3f2fixz8rr9f1LxR5Y2PY0ew=; b=PnpiNECC/tdwKvtDMGsTRfmt6p7lfwMF18b1TOxYT1JWD1NU4KJq+IusoRs5SRPRxl POfQjUDFT/xrEoVE4iowWqT+1Gtrja34p/VKnIBLAZ+ul9wIAAgrm036msUjwuH2bYgQ Y1No8WrQRAdssCEM1JEvWZn/4/X4aRa1WfNPE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/0YFvE1Rhs/pPbXbLOn3f2fixz8rr9f1LxR5Y2PY0ew=; b=dWJn9MJR2HJ9Eo+TvzFpCJs5KcyKgtu9qoSbiDMw42U+gdnpvwA6MiuoPsXaYkr4yV GZtTfhUihGb0XoMxnCUHYsshnzPXMAnT4ZPog1qQmVJLIaGBilS/OfKE+Ad6ZSSvzArb iIzy3Gt8o9pgUXgRRW7ctE8yzZH6jk2YsV9/J7EyglfRUEz7Oy8jW0KtTr5rY4cHR9sZ q4SGoChqcbQzayh7wGnMIfMjpLgeqSejI1drKL6+CXlAh0dutnzYifEuCi6jAYwitlU4 sOGtX7QrsmqxAs1VDI9gQhYdbcB4Q20nYCIZSNVVVdkeHkbCcViY/t3yQg2o1iNqKjZb ec6w== X-Gm-Message-State: AKaTC00V1D/7LmEOfKqoicB57o7itExkp8Z2pCaN3hg1vsqeM7oIn6YR9JTqKUHK21V1Ig== X-Received: by 10.28.27.208 with SMTP id b199mr28663426wmb.82.1480541973331; Wed, 30 Nov 2016 13:39:33 -0800 (PST) Received: from lvps87-230-87-209.dedicated.hosteurope.de (wildmoose.dk. [87.230.87.209]) by smtp.gmail.com with ESMTPSA id di9sm74904113wjc.37.2016.11.30.13.39.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 13:39:32 -0800 (PST) From: Rasmus Villemoes To: Malcolm Priestley , Mauro Carvalho Chehab Cc: Rasmus Villemoes , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] [media] lmedm04: change some static variables to automatic Date: Wed, 30 Nov 2016 22:39:10 +0100 Message-Id: <1480541953-27256-2-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480541953-27256-1-git-send-email-linux@rasmusvillemoes.dk> References: <1480541953-27256-1-git-send-email-linux@rasmusvillemoes.dk> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ibuf and rbuf in lme2510_int_response are always assigned to before they are read, and their addresses do not escape the function, so they have no reason to be static. Signed-off-by: Rasmus Villemoes --- drivers/media/usb/dvb-usb-v2/lmedm04.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c index 7692701878ba..cd463f09ebc7 100644 --- a/drivers/media/usb/dvb-usb-v2/lmedm04.c +++ b/drivers/media/usb/dvb-usb-v2/lmedm04.c @@ -315,7 +315,7 @@ static void lme2510_int_response(struct urb *lme_urb) { struct dvb_usb_adapter *adap = lme_urb->context; struct lme2510_state *st = adap_to_priv(adap); - static u8 *ibuf, *rbuf; + u8 *ibuf, *rbuf; int i = 0, offset; u32 key; u8 signal_lock = 0;