Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1684753iog; Thu, 16 Jun 2022 11:27:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLAiKfDod5nKbthvln6Mx4EUwNxglkrN2JgwX2ehA1xT1V1Zih5wKYpbZCX5k9Db/WPHj5 X-Received: by 2002:a17:906:72d4:b0:712:1fa8:a685 with SMTP id m20-20020a17090672d400b007121fa8a685mr5457886ejl.709.1655404024223; Thu, 16 Jun 2022 11:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655404024; cv=none; d=google.com; s=arc-20160816; b=wZv85qbVQyMExe6+fBmRSiVZ4t5Ms0Zb4nW3TkZdretTcBy1iyy77Ogp9GE6iHIla6 IFDt3fxNrVceW6+mW5Vi7GMKgbPOWoUsBRq7kOUnoWM9jukVGjymic+1Mxzq/UlJmP5t HwjIHBKSxMlloNKsSfPDpf8Ae6oWTYHVZpxqB2lUbidOQL3tFwPzFjdvZgTfWvBLrJTw VqLwQEgpHKy6WYhMHjotEBHUgQCtNIYJXL1nDPlK+4cC8okH6aZE0FRuxrCdV9HuIT48 voOxBFK48JZyzwlL3Zj3jbysXY/JJz30iwKw66hIM3KDp5Go3rgDhSyZERYs6ytuhMgo p2ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IrXp9e9Px3FAwyoHtBkPdtEiOV152+/d+TzNFXLYICA=; b=L96B3bC47+vreq/+fr44zV60uO72geA/c7/lEtcWIagx4YSjItJhPqV/6iSuO8JQGb r+UwBi+FfIc5yCJpNzCOrSRIAFI9aNifRfn0Xr7sMUEfjXIdjz7imbW/IS52AwDGcVnk SMaalfkC6DnALLkopKBF+b339vq2zh5uJs1j521wMfT5DOdRO1sF51KEF7KhAF/BbpvY XkvRRDZAJo9JEpSRff3Le7N90+ann/oeZb02RQNxrxTzi53rZqh2whAvPTHxbPWNXzrD fkdrNgQJb5sejBTnvv2TgwDq5HhSa0Hdp4xCUGPRngVTLIJutHVhuiJDQBC8yHwfB4UB cGvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Ejdklu/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a170906344d00b006fef89ab3besi2379889ejb.729.2022.06.16.11.26.38; Thu, 16 Jun 2022 11:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Ejdklu/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233733AbiFPSTt (ORCPT + 99 others); Thu, 16 Jun 2022 14:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiFPSTq (ORCPT ); Thu, 16 Jun 2022 14:19:46 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A67EB4F478 for ; Thu, 16 Jun 2022 11:19:45 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id f16so1058763pjj.1 for ; Thu, 16 Jun 2022 11:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IrXp9e9Px3FAwyoHtBkPdtEiOV152+/d+TzNFXLYICA=; b=Ejdklu/YAqWKw/4eung/ONJNMuCJqO6prcyo4aGJhGV3gXnn0mmXEQ1GNCvG2A55xp quZyVAcmvZLNHE8/rQqBONnlHxc1t3TaASY7FEmOlcXT8FruydbQL/x14qqVTkKvEWWV yCWZ08kzaGqEEQrMV60sQ7iukLm90bCGlc6XjTcbWaICfrjykQJSSFHKub0zrmwQJpD1 SdMyS536P9sryDKBaNUY/kpkhQ1c4keaKaRFwk4ZieXTRJBFuSldzALWvqjhP0jsKkdM 642IAJFK099aVsZ1/U1gEHuNwPWm8fj2cyWdR0PCJ74IonCkEFp5QkTlyYq9ky0xLi7y na6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IrXp9e9Px3FAwyoHtBkPdtEiOV152+/d+TzNFXLYICA=; b=eS3qjS2QAyyijd83yx8yQ1p65Ka0qDBHz2JkvsMZ11XHIyUnEw7EXMIKogZarp+udi vDMSLgE0yFbCIc032iaPcrer7Jn2ucwDnrYM95N2qUUrMeANI2VmYbwRdgFihJRTKxmd F7Adysv46NNx3skabH66/x8hOR8uwqha4OEcC2lBPa8aSfYQd9efu0sSAqxN4Pet+SFu aUmZJgTB4h9jUHvCTnCMHxts78i3Kf4WjaAJyo6QWD1GKAMOf1ndvPubFLtnXa29idFe N8oDmjeejEetsZBYfP9qQZswXKg00HKO4vQpMAkmhAqYNYaRHlvZkG6claNeau3UqXT7 IGAQ== X-Gm-Message-State: AJIora9QuCW6y2N+ybIgeo2J1/E5CdhwFa7DH0aw13KZjRkVMYN3pq3e PxbpIOkg4VApNxqPJPBtKLgao6UA0IVxeXQV X-Received: by 2002:a17:902:dcca:b0:168:dfe3:66e4 with SMTP id t10-20020a170902dcca00b00168dfe366e4mr5868327pll.44.1655403585126; Thu, 16 Jun 2022 11:19:45 -0700 (PDT) Received: from biggie.. ([103.230.148.187]) by smtp.gmail.com with ESMTPSA id y1-20020a63ad41000000b003fae8a7e3e5sm2078325pgo.91.2022.06.16.11.19.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 11:19:44 -0700 (PDT) From: Gautam Menghani To: airlied@linux.ie Cc: Gautam Menghani , linux-kernel@vger.kernel.org, skhan@linuxfoundation.org Subject: [PATCH] drivers/char/agp: Remove unnecessary variable assignment in agp_generic_create_gatt_table() Date: Thu, 16 Jun 2022 23:49:39 +0530 Message-Id: <20220616181939.225041-1-gautammenghani201@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecessary variable assignment in the function agp_generic_create_gatt_table(). This fixes the clang scan warnings: warning: Value stored to 'page_order' is never read [deadcode.DeadStores] page_order = num_entries = 0; warning: Although the value stored to 'num_entries' is used in the enclosing expression, the value is never actually read from 'num_entries' [deadcode.DeadStores] Signed-off-by: Gautam Menghani --- drivers/char/agp/generic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index 3ffbb1c80c5c..046ef61132f6 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c @@ -864,7 +864,6 @@ int agp_generic_create_gatt_table(struct agp_bridge_data *bridge) table = NULL; i = bridge->aperture_size_idx; temp = bridge->current_size; - page_order = num_entries = 0; if (bridge->driver->size_type != FIXED_APER_SIZE) { do { -- 2.34.1