Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1216775pxf; Fri, 19 Mar 2021 01:44:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYAQW2ajK/M3G5A538NM+7x0MfHtc0RIaGiQ+xl4YEdv4x4+u28ztqu0+R261Yo+qcOUgp X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr3152278ejb.310.1616143484583; Fri, 19 Mar 2021 01:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616143484; cv=none; d=google.com; s=arc-20160816; b=ot1lK4bVRdOZ35OmqFJ8C8fRuhNq5flUfpJ418uFfF2fUcqZ7uAFfCGaHvqCGIw5IK yOybBVRmQzrHdBzhaNpk/0sMQSTdATKIAssqcohEflkWzI6KRj01qitZkUGhRm4fPPPu UyYFQOEcvTKS9Tgl1Td6hyxkZBl4uH9OC9kcvmPYN+/f7GLFwmu2CRvKu4X18EkyuxHF 5q1ZkBjF/vLJaUF04nDHPew6vl6cmpWj9jM63kqZJX8qexFWAUbxHt1xiZOE34Hr2e1K EIHAA4yGE1gYk3DPHuylO63jBJjJga9M5ORRUqJsrzFsc6H8rcXokv3IE4dmr+2UHBi/ dbtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=N2Ye0VvJtX2h5fQJAxjTwd/VGAJl2J4cj2qeVKTVmDk=; b=cohQZ0aEwjRnjyTqRMKB5bLRa+1j/1b+JWvZcwZPv+x/KiC2aok7q+jcqJwcli9PSm ZR/axIYSxft/0hhm5MLcKMw9MCUNIAeREtCeYKtglWZO+5Sz6obXPpT24XH5AfMO3RKv SN+Q58m+NkVRWE/NJgfJRfU24njyZnEAoRwOB6OpuI+Wtue7uSnOrnpOQisEKrX+x9uF ZOiIukPkJ3g/9VR2QPUpmJyapcxonupSQkrl0o9YboM+M4prxNZKgDHh9fRQzjKzXj1s oxAbXKP5OztGw7ZnoaYp9ZHoNfbniDgqaZ69EQAAoMpYdGxb0Kdka+CjUVqTok4CRqQQ uFzQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i15si3498263eje.718.2021.03.19.01.44.20; Fri, 19 Mar 2021 01:44:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234293AbhCSIlN (ORCPT + 99 others); Fri, 19 Mar 2021 04:41:13 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:50436 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234426AbhCSIku (ORCPT ); Fri, 19 Mar 2021 04:40:50 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0USYrtC0_1616143241; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0USYrtC0_1616143241) by smtp.aliyun-inc.com(127.0.0.1); Fri, 19 Mar 2021 16:40:48 +0800 From: Jiapeng Chong To: bskeggs@redhat.com Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] drm/nouveau: Remove unused variable ret Date: Fri, 19 Mar 2021 16:40:40 +0800 Message-Id: <1616143240-16356-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/gpu/drm/nouveau/nouveau_bios.c:2048:5-8: Unneeded variable: "ret". Return "0" on line 2061. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nouveau_bios.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index e8c445e..41b78e9 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -2045,7 +2045,6 @@ static bool NVInitVBIOS(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvbios *bios = &drm->vbios; - int ret = 0; /* Reset the BIOS head to 0. */ bios->state.crtchead = 0; @@ -2058,7 +2057,7 @@ static bool NVInitVBIOS(struct drm_device *dev) bios->fp.lvds_init_run = false; } - return ret; + return 0; } static bool -- 1.8.3.1