From patchwork Sun Dec 25 18:43:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9488307 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 840DA601D7 for ; Sun, 25 Dec 2016 18:43:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B1F82029C for ; Sun, 25 Dec 2016 18:43:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B47822A63; Sun, 25 Dec 2016 18:43:41 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 1B3D02029C for ; Sun, 25 Dec 2016 18:43:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754095AbcLYSnX (ORCPT ); Sun, 25 Dec 2016 13:43:23 -0500 Received: from mout.web.de ([217.72.192.78]:65058 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753678AbcLYSnW (ORCPT ); Sun, 25 Dec 2016 13:43:22 -0500 Received: from [192.168.1.2] ([77.182.80.223]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MPHGG-1cPbU31qYC-004SH9; Sun, 25 Dec 2016 19:43:15 +0100 Subject: [PATCH 11/19] [media] uvc_driver: Delete an unnecessary variable initialisation in uvc_parse_streaming() To: linux-media@vger.kernel.org, Laurent Pinchart , Mauro Carvalho Chehab References: <47aa4314-74ec-b2bf-ee3b-aad4d6e9f0a2@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <268fc54b-9e81-dead-2ee4-3cd8f2caef4b@users.sourceforge.net> Date: Sun, 25 Dec 2016 19:43:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <47aa4314-74ec-b2bf-ee3b-aad4d6e9f0a2@users.sourceforge.net> X-Provags-ID: V03:K0:PQaXLLKjI4UOBc/RT6gmFmOflvlOf1Mzuk8Qe/9HWPMHnJ5zZx0 NvlUZG0tZfJfIimjT+jS+UxhccE1rusm/hhwQlRSfYZ6PYpW4x461tVLtTfLJaZA/GxZuZF NL4A++bdq5xYq9slxCb/uotriklmuu3mzq5Xy6X9wMutvDJr3cpbIjeX7WbqvwS9R14nVmB cz6g8KtA4RRGqRKuONb5g== X-UI-Out-Filterresults: notjunk:1; V01:K0:qpE0kt+oJMI=:DHwLJHGEEHOEZGrqUnPE0u 8ii3yQtrNo9xndCYAgN9ABAMUHAaFdBaq6IBMqOeNYxJTddz+9sZa9uhQV9L7dUV7M/UhjWfO lZo99I8Ipx3yU5t9IwEnQwKSN0YWIg6Z81WlvjBmf/M0En19g2iCk42fO9MNwHo7fdRmJDccx zTw04IXs/lTeWbHtP0dEhRSsX4MTOHBMFjXqxF+0QB0sa+hurW4tcvSEikY4SJuE6Ito4dGxz TC7or5Vy/CVdyDeudTgIEptfT5+JBaJs/WC8FF2z7cqYQ931gEEjnRVxj7hvqDDz6NaP+SC5k HvqyKlW3hJE/UQAFC62WydQ9FwdFeG8GKZ5+gUzuNuu18L1BBfVu/jO/W1kAq0p4TcCtJxAPT OtunSQ4AKSHsq3HmWVVGiFsayhUhqn0/fG1oosNK9kvX0Uj0JoFpLt/84xZJPivLA260bGxzR nYMz9OUW8Ob2JfNibatqz/9MRiZ24OuAbxFz1dksn+TAyoeXnClECZNCAIeeheGPP1DRxuUnf KHtJnebSkgq4yOw2yjTKlohNP0gS+WclLOImMI+/etqIHYId6w4sCogl/TwJvPrZ2zx+uDtOq 7Jec5znNmPqfuFOytA2qxOQBrW9ZGwjdu34e9y5yyM6Zv2g9H2aCL1Cxmd8HpkC/T4FbU3aB6 y9qoqA8I3ZFG157XSCFQ6Zq1JU4mhAhC4F7Yqb1BMFLc7HeNzY3YDRPhX9my+0ZG1pxzFOOvB HBX3k9D4swyG+4uq1D3AYzReqKead2QZjeD53tZMzYqTYHqmb9GbmiCGa/DYW911Mu42vCyUc fi3TmSt 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 From: Markus Elfring Date: Sun, 25 Dec 2016 16:02:46 +0100 The local variable "streaming" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 5736f8b26f92..5bb18a5f7d9f 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -631,7 +631,7 @@ static int uvc_parse_format(struct uvc_device *dev, static int uvc_parse_streaming(struct uvc_device *dev, struct usb_interface *intf) { - struct uvc_streaming *streaming = NULL; + struct uvc_streaming *streaming; struct uvc_format *format; struct uvc_frame *frame; struct usb_host_interface *alts = &intf->altsetting[0];