Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1398682pxk; Thu, 10 Sep 2020 14:25:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjjdSn0JN2Odfq+o5QBZHtFDubU4/qsSLlQMBFVw+F4VvlnGtAU7oU52nkCj7w//YJGTSW X-Received: by 2002:a17:906:d0c9:: with SMTP id bq9mr10900707ejb.352.1599773145624; Thu, 10 Sep 2020 14:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599773145; cv=none; d=google.com; s=arc-20160816; b=RPEKvAhB8pzEFUq0RiMTwDz9IVu8IvXJYF3noXte/NGl/E7PW7iSGklbzl5Q3DU3Af +MCmIF+70LFDXOnW6zIuQJK+C7HgJS+sw5vWU2OeFLNbUpVurzk8L+1rZQQfZcIHC7p2 qSnpXe89G9R8NkCa9DmWxw0CvbPLv4CDu5T5vE167G1UJ/itgwFYxkDMTCgKSvC2A5Ph HaTE4v/uiyauHFgHBzBK+TJmU/pBSD5bngoNculQ5ue+kVURiT1ZAeCdhXUbHW5yV5Jt LeN+W2ird2dHlqwfSxG6+QDpREamJSF4ngCztv9G+LvNKPnmr4rZh9gP56BTsVjsUsvg 6OzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=sv3McZw+xM7dD3x/p8eO9vFhFP64PtPChyUGPfQzNpA=; b=otVAv+347yRekmGJoqn4QxUICTf9ZBRf6HW76VO5KGgsYbNUC3g93ltGFVycQZq1Tx N2J99lQKsyk8EaLBel1hlCpLv0pV2X0ATzpfiSM0OQ9aLgE2EpYLYlHYCGj/U0jkiXC+ /8aPP+JG3XUOCzyGY0wMYIvyJHZPtgPgVddEHaZgkPL/tRJhTYc0cstV3Gh8egWJswRa kUAS6hUPlfsSElYeIJP6pzv0qoL8vBjBuFCoLGHt2iqjbPorG1kKotApfthcCB7jWBg3 juJvrgb+T2qtu7Hc+g4W/1uBQDratn1N6qaSnvoEHfh3RsC7j/hZ5IOp0dIkf9Z6j7vW hGew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si5253507edl.290.2020.09.10.14.25.23; Thu, 10 Sep 2020 14:25:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727083AbgIJVWf (ORCPT + 99 others); Thu, 10 Sep 2020 17:22:35 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54768 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731093AbgIJOYF (ORCPT ); Thu, 10 Sep 2020 10:24:05 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D10AC4939D9A164253A6; Thu, 10 Sep 2020 22:06:46 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 22:06:37 +0800 From: Jason Yan To: , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] video: fbdev: fsl-diu-fb: remove unneeded variable 'res' Date: Thu, 10 Sep 2020 22:05:58 +0800 Message-ID: <20200910140558.1191423-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eliminate the following coccicheck warning: drivers/video/fbdev/fsl-diu-fb.c:1428:5-8: Unneeded variable: "res". Return "0" on line 1450 Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/fsl-diu-fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index a547c21c7e92..e332017c6af6 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -1425,7 +1425,6 @@ static int fsl_diu_open(struct fb_info *info, int user) static int fsl_diu_release(struct fb_info *info, int user) { struct mfb_info *mfbi = info->par; - int res = 0; spin_lock(&diu_lock); mfbi->count--; @@ -1447,7 +1446,7 @@ static int fsl_diu_release(struct fb_info *info, int user) } spin_unlock(&diu_lock); - return res; + return 0; } static const struct fb_ops fsl_diu_ops = { -- 2.25.4