Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp545585ybt; Wed, 1 Jul 2020 04:44:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSJjqgd5kE6Qc+1CPqFGGypq+a7jCypbaHaaczyF7fa/BAnWVRVhedxJsZfWQRdIhl4WI1 X-Received: by 2002:a17:906:17c8:: with SMTP id u8mr22862217eje.129.1593603844978; Wed, 01 Jul 2020 04:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593603844; cv=none; d=google.com; s=arc-20160816; b=q4N9yAPFCeCFBBSKIAbcp5zOb8+Z9JM/u7RKPMqM+3L0mJnISZfHEYj9aoNhOTLwJR //ZDdr8MCkE35vzIKQ0nv/IFU6lAFtdjV0aCJT/y2GRm/p55+LyWweA4BAWGbFXd12Xv bSm5yfFsfzoF/9LSFGivBOsflnZmpF5+eASM5E9q5TcBfUQT7F7UIhvG15HnOw4OLWzj vIPIvEpWFAV013AyIYUlgdtNVT5T2OKXDeVRnovSHLx8iGsgu/mX1GCo7NR68czU3fJJ b3FWwnLVN/Ss/cPlO7P/l8wXb/nGOW9A6M9IwS62CngZhrOPGtAbwiUfr2GWAKfao7NP qb4g== 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=9fUaH+kKT+2wdzlgRBpyPpqJYYxXJuri7IAWxnqxB88=; b=v+3UuMWkONFNQ0LmFmI92OAAxg9cLzAkzKMXtDiK1Ki2K7EcjEr8ujGBQut3+/pDNh UjgD+EgowEUxSzL5tLMP2N0DDI+eJVC1zWB/CinmiuwjUy7dnxbonLXkNYGtuOT3gLct DJMeh9PQwOujvyb7q1Zet+RHyn1wcCgdUT5TiXQagdkWhQLm6JHIdOrfWFZ4m0Ne7O6h rP0bKxw/wo7K6ljqOoncxunTV6bZM9TsfUcaCzEISVzNM3GUr5BNp33RBUXOuHWTM9zq ciPLr1FSVuF/M2r61LMgIWwxiRIqAqenKSSb9nY1Zrl99947zVTgmOmqfqAxhQK0ly4s 9IIQ== 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 c22si3465629edy.549.2020.07.01.04.43.41; Wed, 01 Jul 2020 04:44:04 -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 S1730324AbgGALmU (ORCPT + 99 others); Wed, 1 Jul 2020 07:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730430AbgGALmT (ORCPT ); Wed, 1 Jul 2020 07:42:19 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 448EBC03E97B for ; Wed, 1 Jul 2020 04:42:19 -0700 (PDT) Received: from ramsan ([IPv6:2a02:1810:ac12:ed20:503c:ab8:1424:9638]) by xavier.telenet-ops.be with bizsmtp id xniG2200G49uj5301niGpM; Wed, 01 Jul 2020 13:42:16 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jqb84-0006Pr-7l; Wed, 01 Jul 2020 13:42:16 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jqb84-0002ED-5I; Wed, 01 Jul 2020 13:42:16 +0200 From: Geert Uytterhoeven To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 1/2] gpio: aggregator: Drop pre-initialization in get_arg() Date: Wed, 1 Jul 2020 13:42:11 +0200 Message-Id: <20200701114212.8520-2-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200701114212.8520-1-geert+renesas@glider.be> References: <20200701114212.8520-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 --- v2: - No changes. --- 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