Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp658196ybg; Thu, 19 Mar 2020 06:32:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvb3f1jvKBipy28UObWoUwpKX1/31cBg2ydZ0lht5VnYPpsJibR2PnEq4aY6e5fG6kFTftz X-Received: by 2002:a05:6830:4a6:: with SMTP id l6mr2455964otd.61.1584624745475; Thu, 19 Mar 2020 06:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584624745; cv=none; d=google.com; s=arc-20160816; b=xQazimZNXAA6rRTWDbCWFjWIr/amb3AQl5Valjahv/Rgs83kNFisJZNJ/J9tlMk3xE 8Btc8wpbGzvoufAhDq4Jbu8ebMXJhva18WHBoGxnjrlZ2aTcxNaT2wWswOAsMAM2UZlp H4c75JcHNj1DRD8Du0VuAPXXbOvIEfizkkxFGeY4ls9k7g+WQV0F59BD7G9w7U7BuZTQ 8yaH0scVa/ceXY2+X3s9Ihauu4v/NEIE0WV94Sm6Iq3y7dlf2HlRSPdvVsKhEqkOhxvs m4LuiajKfjzB8yYRSf3vhOPzDhFUjm/VnKpA/BZnY1XdeO5zIGBQTu2WV7xSPhuPMZZw fTAw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KdTfPfrwa37JhG/eK0cKmMmd5bfMONeBDvC4iCSqkdc=; b=CSd0O4u8rk9DZnCQSe+vItbKaw2+ekY/LChCHEeu8U9AiGkK3ljij5xK+CsQnr6Crk 3e7+u59Bkk/kwzdcdCwXzYvNV7Sc6gpCwxJ0rNIZgipFAxtySM1hO+OQnwttE3DlnOlc X9IPbis2zSDCiwwLm6l5bWQTH9UUy8gnZDzr0wh3NX1V53YUv9isrZTHxJdfvqBUJrXv Hl4u4m6/wEyA7FQcZbsW4MJJgcD3Zb6MuxsXNdKxswgF7aHFg7/hoDxSSK5iKCkLHdSU 5S0rBcm5Mp6cPu1AE91TiVBWHGq9hBGVTtmTDstbVAHDRaoOCbWjbw6vIWO3xAIMLr7h JBjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZLu/HPgR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j78si1062813oih.19.2020.03.19.06.32.12; Thu, 19 Mar 2020 06:32:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZLu/HPgR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729376AbgCSNRd (ORCPT + 99 others); Thu, 19 Mar 2020 09:17:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:38824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729651AbgCSNRa (ORCPT ); Thu, 19 Mar 2020 09:17:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B3AC20724; Thu, 19 Mar 2020 13:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584623850; bh=gxYuJpUZFx2/9oU5LKTRrj9anqQPMUYlvB8LcoK1RPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZLu/HPgRapna3Uci6+zOqHvTDusBrCDvdFkR+rKkVE69wEYXK49hXpHVcRHDmpHGG cZeiMsZYme94sT36krLP/m1Vj9KkcpOT5rDcg796WO7DUgGyTz5eQf4toJ0QyAEE8k 8L5/cohN+piV0fe5r7H8WI9IYGjyxhJqWmhtzAh8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Alex Deucher , nobuhiro1.iwamatsu@toshiba.co.jp Subject: [PATCH 4.14 43/99] drm/amd/display: remove duplicated assignment to grph_obj_type Date: Thu, 19 Mar 2020 14:03:21 +0100 Message-Id: <20200319123954.849852039@linuxfoundation.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200319123941.630731708@linuxfoundation.org> References: <20200319123941.630731708@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King commit d785476c608c621b345dd9396e8b21e90375cb0e upstream. Variable grph_obj_type is being assigned twice, one of these is redundant so remove it. Addresses-Coverity: ("Evaluation order violation") Signed-off-by: Colin Ian King Signed-off-by: Alex Deucher Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c @@ -363,8 +363,7 @@ bool amdgpu_atombios_get_connector_info_ router.ddc_valid = false; router.cd_valid = false; for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { - uint8_t grph_obj_type= - grph_obj_type = + uint8_t grph_obj_type = (le16_to_cpu(path->usGraphicObjIds[j]) & OBJECT_TYPE_MASK) >> OBJECT_TYPE_SHIFT;