Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp375527rdb; Sat, 30 Sep 2023 07:51:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IECavALR11s5DctMWEqnv/N9/QNy67d+36e/qjVEGkEDm/VH/ZN4FAh+BrUVXbbv6xPW1Hw X-Received: by 2002:a05:6e02:b4f:b0:351:53cb:e414 with SMTP id f15-20020a056e020b4f00b0035153cbe414mr9563065ilu.10.1696085495559; Sat, 30 Sep 2023 07:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696085495; cv=none; d=google.com; s=arc-20160816; b=SzfSesqgy5bgv/mFyqD5b4w90zLd3Bnu8A1llTrfMcoCrkXRwwduGyilICp89rHylQ 9hbSSxF7vkz7kfVVNQVpolb7G/yCTrjq5Jh1Oz7Xm8DepErDroNPCyRKbaUpJM/QIi1J PYFAM2j7ixC69gMZKpBJxKyCPQa1e0zOy5qz6SI9Ds2SLpQpyzTI8vv+1n/M7GPeqxJR KYrTkj4o+XreOZWr1Z/J2BuXYrSZaQ9nV2EIP0PtBI5vSTM11JkaeFEFySeuiMozgoBS rsbS4Q7hczy/Vz4GcG8x7I/3Vp5xNnpShLCinkExgVYfmzDkbINjT0+Bki10i1I0to0i pMtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=d+oaP8TaORSoGDFnn0D8hLzy1EvVNodSU/WczEXtpZ8=; fh=FgQhOcmCBNTxwHmDDQqSZRuj5gxhBRpD8fVS3hnIX7o=; b=iqY1NJ2JSQaxp10q63Y/u5zAnUkPo4/Vq3e6Tz+Yc+MBUBzLX62Svoow/5BcsPLCmr ucDikhJ6vGKD2RzG0EEFHfGdvy261x1Vu1K0u8aILLS6aOmeL30e/drvqfe+9QxBST4E YyY7bW4r1XZwaktC+p77ZRcVWysjQcex9xHEN4aPTSUFlBIPU2PxYq14U5seOPASMsTd xsJzzH5EjWQvWS7c+DYGeOYlsFwAkp2J/YaDY9W0vBd+toRfoZoZEqRO0IXXlDztRJsf ljjp0AuaD3+7hGGYnDHU+3vNUsU15UUAVS1PJqNjsxpfJsJpoRc+RrSt+iKWpVdxAIdw Lk+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kq/j9I20"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y63-20020a636442000000b005578c6a7672si23966392pgb.90.2023.09.30.07.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 07:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kq/j9I20"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1B52B807EB20; Thu, 28 Sep 2023 08:50:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbjI1PuH (ORCPT + 99 others); Thu, 28 Sep 2023 11:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbjI1PuG (ORCPT ); Thu, 28 Sep 2023 11:50:06 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE15FC0 for ; Thu, 28 Sep 2023 08:50:04 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6c4bf619b57so6484857a34.1 for ; Thu, 28 Sep 2023 08:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695916204; x=1696521004; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d+oaP8TaORSoGDFnn0D8hLzy1EvVNodSU/WczEXtpZ8=; b=kq/j9I201k/xmnT96T4y4UuathD4ajGoMzsG430neR8uYgPItoZzOxoRKYCUFeTdfP GtHvFMLLVMiboTcCM1R0oUdaD091r4hL+58YFxc1JSB1Oe/eej5vYgcmXKsi7qP3ASLn GCFNnx49QEslJbuMuxXbM8/Ivh3Cgg3ecHQ0/jWMYH0Qw0xIjq7gdcRSuAkHI3yWZi4g H7fsvSfddd011/m3cXYEQXxtC5XwSg3VebSrjnUdd8I6P7ofb1Hq4QpwWUf7a7C7mJ8K 8QzYBXgWWT5v58X1w5oXydGDKrndlS5dqcscMpcwlpZgfP4rdeUSJZjFlrJZ7uMDPNnD mEvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695916204; x=1696521004; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d+oaP8TaORSoGDFnn0D8hLzy1EvVNodSU/WczEXtpZ8=; b=bny9UoxvXpR6VFUIykeOsFPYijr23+x/REvjy8POMvhjIB/GdTWWYrlRF96+602Act MORZ1j+beA3JH+3DJrJGvFHCoN+k5z1v7dttOOaAjczuT/8TJ9Wh0m4gBizsXJWlqqLA g/Zcx4U/rn37i8RnFHw3cVS5eCn5fRyOoB7s1jj9uGXsMeZ4PK56kzrB+JWzNwnA64MW uQ0iLzgMWXiN0MoyoiwyUK5JwSxP4DaQVAJHOzaopR4mjA3kxZXNWnqa/9q6QJdpD5jt 5rizWpm68QwUuBR1QW6CMa3HQUnEfrDrLss07eZrtX6+6VwWEA3SDOpZmfhnkbgS/xfv eDcQ== X-Gm-Message-State: AOJu0YyOJXp/tj7SQ2HodOLB9aLRmMbmyF/zjkoO/cYfrRccrlzNgJYx zBwdpjv8kuvEGtTXmBiQch6L9oVV7oJsZAfTItMwv554 X-Received: by 2002:a05:6870:468c:b0:1d6:3b5f:3211 with SMTP id a12-20020a056870468c00b001d63b5f3211mr1638616oap.31.1695916204052; Thu, 28 Sep 2023 08:50:04 -0700 (PDT) MIME-Version: 1.0 References: <20230928094540.37437-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20230928094540.37437-1-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Thu, 28 Sep 2023 11:49:52 -0400 Message-ID: Subject: Re: [PATCH] drm/radeon/kms/atom: Remove redundant code To: Jiapeng Chong Cc: alexander.deucher@amd.com, Xinhui.Pan@amd.com, Abaci Robot , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, christian.koenig@amd.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:50:29 -0700 (PDT) On Thu, Sep 28, 2023 at 5:46=E2=80=AFAM Jiapeng Chong wrote: > > drivers/gpu/drm/radeon/atom.c:396 atom_skip_src_int() warn: ignoring unre= achable code. > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D6713 > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/radeon/atom.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.= c > index ceb6d772ef94..3082d08a06c2 100644 > --- a/drivers/gpu/drm/radeon/atom.c > +++ b/drivers/gpu/drm/radeon/atom.c > @@ -393,7 +393,6 @@ static void atom_skip_src_int(atom_exec_context *ctx,= uint8_t attr, int *ptr) > (*ptr)++; > return; > } > - return; I think this should be a break. Alex > } > } > > -- > 2.20.1.7.g153144c >