Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3282267ybt; Mon, 22 Jun 2020 21:04:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmjzv8cPjP/FbFrCnRrbofRogn3E1YnR3zpak1JfP8OFVYwjt5L07vUpFV8qKCpPquGZLI X-Received: by 2002:a05:6402:1767:: with SMTP id da7mr20480237edb.90.1592885098370; Mon, 22 Jun 2020 21:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592885098; cv=none; d=google.com; s=arc-20160816; b=0ofDg72VnUt7Xb6DHw44Vh0EPVTJwo0Gh9ZS3eUl2dUjYyTdd5z1jE8c8Ani2u94LI +vpSUyGLTM101YUPCKV0NYlIAK3TOQ3yzwapFa5yCBgJAD3m7j04uYpq+oCWZdvIOWji lzXkLKTjQJ8+iAhMlC+/wIxtDBlNNsE8dQfhsrs7h3Y0RxqrNtvMT7VlS9X+0CI+uQum orXX4CIseAImky0SFD5DO0t/TwOydKHKDm72nyoLwaqzSeiKzx+FJvJr2hTml+qMr/DR mRHTc8pxx0HCjWHl0RtT0QjomB7ouN3eCjXx1jtbMtpqmwfWOHn3Gww/XuD2GfGaiEFZ 3esQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bC9ynXd4F/s6hkCty4NlJ0fUEOgHX2qzuPDIPZLMBAM=; b=Er2glZ2FlXYlen0b9mFj4396ZszInordPz0JacPjv4KMKBEpGYvXWIDmx5pjA/EHw2 z1FJqeWAxLh/S8wmkuTbbmkpau1nLfBoMfblX/QDDKA1MJCVHQfHh9OSTRw+DLTjAXla RgamDk0t+ZQjzw+sUAATjWZXhz68uM2mSSxQ6L21shgJ/wTLGA4nVmkSSZLMTIY0hIG5 Np1z8Sua9ldVSPh9houTHqIZ+QFjC6IH3Idg4Tg1kMOH9aXH1P7ExJk2zuDWHP78kMWV PNL0IU1bvnUOUJ4qX+WMnTfaw9CkaniIxWLTyQLeN+lGaprW57PSHuz5OTCwUvbo8sVB o9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lX0q9/G7"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si10886637eds.271.2020.06.22.21.04.35; Mon, 22 Jun 2020 21:04:58 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lX0q9/G7"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732116AbgFWEC0 (ORCPT + 99 others); Tue, 23 Jun 2020 00:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726429AbgFWECY (ORCPT ); Tue, 23 Jun 2020 00:02:24 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD44BC061573; Mon, 22 Jun 2020 21:02:23 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id 35so8570386ple.0; Mon, 22 Jun 2020 21:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bC9ynXd4F/s6hkCty4NlJ0fUEOgHX2qzuPDIPZLMBAM=; b=lX0q9/G7P57n76scvPKm16pAXRU989y9yxg/302JoL5I+xc1czMEHkY7NJuaQJc3O8 nzesxpfEg8IAl42rlpHSvjDtnGWkGxTbGFO13aDsBrLIILUHAGzVUtQ2Jiv+DKiDJGsY HHJrBCbmC4ITjFw4nfSLaZGKCSmeyYjMWv5O23RG9JVsgdVlSr5aQYzEFxDbgeH+GNkx l+3GqF6ENTDVm1Fo71mqlQ06XGTyxWKTF82T3dRiLUeO1z9rFfhWDOPLHe7+s3MlcSX9 KfbnpByFpwawWld0mg9Sa8SB0wNP1GpXsiPjCV+iQ38V+aLNDbleJ/ZhC0v6a50+BaHZ c5Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bC9ynXd4F/s6hkCty4NlJ0fUEOgHX2qzuPDIPZLMBAM=; b=Eoqjn+xlymSCOQjW//grBdD3r7KxS/u7J/OTfYPIJJvpNbmaZhe9Z70tec7hbf0J+N ldQWPleaFbWmmyZXue+J5ejV+lnoqYXaN8Q49vhRGChwvCCPT+EogrOnbi9ZXn8iCrNV OjpEJsYn4DBihbMiRDStvpJ4yHKmR39BswHkHgsLm2VzJGJbgyJU+dBpatQcLHM/TnS0 1kP38x1YrkhJOFyoByqV9fmaU+z1e4dXEVj1cSVMpTp+VkQ/31RiM94yrztUm2ZAywBB XWlDX1lrPsHiOnvdmFFlweCZj59Z8i2Vuh6vVv9psBsm11HpO4L5hkEO5fYgxNrwvHw/ RYBQ== X-Gm-Message-State: AOAM531Kl5JV5dLpDDTQolS9rD30oXzQ+MVoztonzFFubj6VEZxE3i5Q 1E0pEQpsa35kEgDhyV5B8Bo0KCFDxjs= X-Received: by 2002:a17:90a:df11:: with SMTP id gp17mr725282pjb.188.1592884942911; Mon, 22 Jun 2020 21:02:22 -0700 (PDT) Received: from sol.lan (220-235-126-59.dyn.iinet.net.au. [220.235.126.59]) by smtp.gmail.com with ESMTPSA id n64sm12442315pga.38.2020.06.22.21.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 21:02:22 -0700 (PDT) From: Kent Gibson To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, bgolaszewski@baylibre.com, linus.walleij@linaro.org Cc: Kent Gibson Subject: [PATCH 07/22] gpiolib: cdev: remove pointless decrement of i Date: Tue, 23 Jun 2020 12:00:52 +0800 Message-Id: <20200623040107.22270-8-warthog618@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200623040107.22270-1-warthog618@gmail.com> References: <20200623040107.22270-1-warthog618@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove pointless decrement of variable, and associated comment. While i is used subsequently, it is re-initialized so this decrement serves no purpose. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index b39e7ef8c0d4..d50339ef6f05 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -331,8 +331,6 @@ static int linehandle_create(struct gpio_device *gdev, void __user *ip) dev_dbg(&gdev->dev, "registered chardev handle for line %d\n", offset); } - /* Let i point at the last handle */ - i--; lh->num_descs = handlereq.lines; fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC); -- 2.27.0