Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3667551ybt; Tue, 23 Jun 2020 08:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc6buYz4B/f/eerJNKd4IJDBrk/mhFUkEYBEwMQ2XSVF0Kx4r1tdYq8/m8+mqNHpEqWyoN X-Received: by 2002:a05:6402:1604:: with SMTP id f4mr23028508edv.379.1592924418810; Tue, 23 Jun 2020 08:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592924418; cv=none; d=google.com; s=arc-20160816; b=VxRB8fSORzU7PwpWO5HaaoBVnV1E2GYAJcJPZgpao8DfgHXHQNmKjjGy4YwtfBO/nr hgVEPYPA8rjHgRu7TdYFmh14gzTleZeh4B48mF9B3opsVj0K3wRwHMZvXAI4ost9kyV2 5nhqnRpkgJxuriVURRv1cQb96BleSqhKoLOmu7o+gM0YCfvY1JDx/yj/vUJcBbOIpiwJ ovu31Bjasz01TojdVZRMh3BMhj9dL2N8vfbS6Rrrtopu6Q9VmNFUWDYQAubuK4NiGyCU 6c7I/g6EfD1MDPLjiGRcAjCAS4558Yy4ReqbbElqE+LDJrZ9M3oim32HD5Yv0bPcIDsz rEbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=9KBX/KNU7cNSX7m5D6ABzz9twYVXNw0aiz3d9mpY9Kw=; b=jiv6KxrimTs9OnmiPTil2+kl2HZtYfXLZvZEIIjO2lRGfkyzha7gIhdgQ/iDzGOThb AQimXgJuuVPiQ+8LbOy/wUNca7dB7lyG10KfvFvYqLwchoBK0If/AU96D4NMcMkmjnbc 2tsVEUXkXY4f3lrUuFN9EKMUcUc4/vbxeteK7CfZvFd+EjP1Zha+3yxAH4aqS8y4AxIc LCeZnY+ISsFa37/RwKXWRFXccT1laWMn9wGL1DdjJ9o2WAy+Arg6A3H90N/XGDl16Kvb LNMbJexxxbliWRuZk90EBFauqgtlpnAu3WXb0Z6vKEqBr77GTlITy2kUelTPn/RwLqgh Fr+w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm17si11437673edb.312.2020.06.23.07.59.54; Tue, 23 Jun 2020 08:00:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732994AbgFWO56 (ORCPT + 99 others); Tue, 23 Jun 2020 10:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732853AbgFWO54 (ORCPT ); Tue, 23 Jun 2020 10:57:56 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 277B8C061796 for ; Tue, 23 Jun 2020 07:57:54 -0700 (PDT) Received: from ramsan ([IPv6:2a02:1810:ac12:ed20:26:93a1:ff06:f8b0]) by albert.telenet-ops.be with bizsmtp id uexs2200T4qCYS806exsuM; Tue, 23 Jun 2020 16:57:53 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jnkMy-0007V7-Kv; Tue, 23 Jun 2020 16:57:52 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jnkMy-0007WY-Jz; Tue, 23 Jun 2020 16:57:52 +0200 From: Geert Uytterhoeven To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] gpio: aggregator: Drop pre-initialization in get_arg() Date: Tue, 23 Jun 2020 16:57:47 +0200 Message-Id: <20200623145748.28877-2-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200623145748.28877-1-geert+renesas@glider.be> References: <20200623145748.28877-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In get_arg(), the variable start is pre-initialized, but overwritten again in the first statement. Rework the assignment to not rely on pre-initialization, to make the code easier to read. Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpio-aggregator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-aggregator.c b/drivers/gpio/gpio-aggregator.c index 9b0adbdddbfccb30..62a3fcbd4b4bb106 100644 --- a/drivers/gpio/gpio-aggregator.c +++ b/drivers/gpio/gpio-aggregator.c @@ -38,9 +38,9 @@ static DEFINE_IDR(gpio_aggregator_idr); static char *get_arg(char **args) { - char *start = *args, *end; + char *start, *end; - start = skip_spaces(start); + start = skip_spaces(*args); if (!*start) return NULL; -- 2.17.1