From patchwork Sun Sep 24 18:08:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9968133 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 E2C1760383 for ; Sun, 24 Sep 2017 18:09:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA5C728C5F for ; Sun, 24 Sep 2017 18:09:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF57228C62; Sun, 24 Sep 2017 18:09: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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable 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 90A9428C61 for ; Sun, 24 Sep 2017 18:09:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbdIXSIg (ORCPT ); Sun, 24 Sep 2017 14:08:36 -0400 Received: from mout.web.de ([212.227.15.4]:51277 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752624AbdIXSIf (ORCPT ); Sun, 24 Sep 2017 14:08:35 -0400 Received: from [192.168.1.2] ([78.48.160.4]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lj2Cs-1dNP0L18d4-00dH6V; Sun, 24 Sep 2017 20:08:31 +0200 Subject: [PATCH 4/4] [media] omap3isp: Delete an unnecessary variable initialisation in isp_video_open() From: SF Markus Elfring To: linux-media@vger.kernel.org, Laurent Pinchart , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: <692bab24-7990-c971-b577-b2dea4176e64@users.sourceforge.net> Message-ID: <76ade6b8-0da7-8fa7-d123-434e4da2db54@users.sourceforge.net> Date: Sun, 24 Sep 2017 20:08:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <692bab24-7990-c971-b577-b2dea4176e64@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:EaX7i4p/+YNZnwRdbQPaQLE/UqqzduJO9vo7NC2q6aPJ9tWSbN/ OL2hA564KLfRmlhghOe2gWvARGhXwDn+pt/pYSxZrcyd+OTAEBhjUGZg42rzx3gIkTM2k8H hpRjqvJrFGg0204qFdbFz1GmxSMStNeoC0oVHzQ+4ilFy1WdMKUZDDTDiRnU5BfVgor8hNK PsAcodZyvTARl0XlGrj+A== X-UI-Out-Filterresults: notjunk:1; V01:K0:wIe3VWVOc7c=:lgAGdWYvyOpDrOqKgKnILQ 5w1KWFFusb0zPoA4mNTwcBbtWVrvk2i5TOSP5skdVL6mWCglt3zngwuw4sznhov3IB4PE4e5z R9G6hZewBpp3RbLEQpmye+wDsyFYB1sAckNvz3xxhbWx16edJD5HEcdwFQn1PBW4PUyOGW0Q+ 3kQVe+KvkbJUV+LhANC5O+aciF59wPka0NvuCYfGbgNpOfxdLgcWPjDF+pBXPZkCv2HV7cSwJ KFnaXp69rlbarMJrCTJrC5zv2Lz9VgvsWRSjpB0/6nSccGCgoSIBAj5JGWZyhwk0eOsJBd2ss pwddaza1ir35kI222mk4P5k2wFXF2F/GAwCPcb0UW6UQN+Nmm7tUKwajS4ttjSH19oaY0K//x 7HhSTU7MoDQbffzNseJS9BKoEIscRDHPrTUcnYGtmYTz6Qo0fWcdCzl+tE0vAipzFNo4TiPVL SLEuGYRJ/HDtKuxzCUe1i8z2YFg7k4AdjISWRDzwasW4Yr/3btwZBLjnclcwTyrg7V8CfwPRN T9020QQRPn0xS7y32K0Tr2xAqztsDw5Z5tPCQXXSUFVGPBDU0z7tb7kodl2mkY59aBRzFgh/g 4xXkdlYyS9XeltpT0/q/KqJa1/6WZQrhuegA4s2yfsJ0H2tW8y+o3h0Czg53SCiY1xqKO3OpW Z2lubJF6R88crGjor4VEczULV+kLMM4G/0Pgt/X93wZxRKDg2YD7R9BtFuTq+uJqXaz02XNAe hPbyHh5FZ19iGUwwA35mWTb+2g0mNvSFGBkEqQ5vQ+OBfmGjfKdE9EQU8nuGb8TYFMpQrjeD4 ip9ECn7SqX2qjqcwgleywMfpRv3P+6s6aZ6rXzzfUPxELoz9ys= 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, 24 Sep 2017 19:43:06 +0200 The variable "ret" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/platform/omap3isp/ispvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/platform/omap3isp/ispvideo.c index d4118466fc8a..a9c0b2d3624d 100644 --- a/drivers/media/platform/omap3isp/ispvideo.c +++ b/drivers/media/platform/omap3isp/ispvideo.c @@ -1303,7 +1303,7 @@ static int isp_video_open(struct file *file) struct isp_video *video = video_drvdata(file); struct isp_video_fh *handle; struct vb2_queue *queue; - int ret = 0; + int ret; handle = kzalloc(sizeof(*handle), GFP_KERNEL); if (!handle)