Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp78112lqg; Wed, 10 Apr 2024 16:22:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWaNlT57bbajTO7m/fK6V2Wtt7AENLEJeH9VCojRbGRMmF9EUaYYtUver9T6skchlRd2PDzKxDPc5ChJOg0WHdywWYJR9ADWiBt8rD6JA== X-Google-Smtp-Source: AGHT+IGDUmHxYyb/figaN8tC7edR/mJFY3XVphBj8JKSjT62x1yi2/cVTvHMcEjnCP+2jidobEXu X-Received: by 2002:ae9:f44d:0:b0:78d:6ef4:c790 with SMTP id z13-20020ae9f44d000000b0078d6ef4c790mr4159721qkl.30.1712791342833; Wed, 10 Apr 2024 16:22:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712791342; cv=pass; d=google.com; s=arc-20160816; b=NiKWEJilebR5BHp3xgCXrBL3XSEb8M0v6tckIIni+TLSd0niU8aW1l9HU/KbTzLRYR ZbPpQq/LVcA04E8DXhu59YGM9sorCv/D8fkzOntwzJZcnfD/LvDNI1DdVAiKo10iuONl Zv0/YlqZ1YVSb2vxmGJUia53MUJKV2b6kuRy4VcnG7P1SfHxr28UKj/yJ1jqOeJWiE+x hK1LPJOSqSOLXb1LBvkzPEElgB5E06b8DXgPadI7LtKhgEDa5iVJ4OGg+3BNMecDyvOg 8Es2PK2I0e4GpRuWryCmNBd3EEZrqvFgul6ii7dascbGA7AVrm/RcWi6k/Aq4eyoNdR8 E9Ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8jPd0pjN1Ffa2YswUVXq8cerkQIFBySvHzyeu4C3/fQ=; fh=oSmVGBVfKclexgcrYzZLCs21l0cpYbjg2gaqpUtk4Z8=; b=FlLa2Tvq5unDSsS2tCfaPpiDyOyUJtqgkUlpn9itpzVJP0lQom4bP/iMErTu/oFBdX lIx96xujLU0L9dd5vAu8u4AtPrrEZORz97mPkB3Um0jbY7xZuQNehmPCZP8dARyzqDSV vuydHOg+9DU0eBnaQAz1LB5hEjgmOKtxm8a6381QdEa45SjwKyvMv6YdgLFHAw7OTnLJ HHkwUw8IKey1UbzvvN3vrAnZA0PX/UHM5QieIRZXOmDqQwJSmMgV8Ip9deP7hU6ijoYw kmOMLREYxWQKtzWatoaPYk7F+G3plGeslgkOf9CkTmCn41SyPSoqosaGdBasQ6LkbxT2 IlxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=acjdbxwv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-139306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y6-20020a37e306000000b0078d695b8b80si321657qki.273.2024.04.10.16.22.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 16:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=acjdbxwv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-139306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D8B971C2376D for ; Wed, 10 Apr 2024 20:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4031F181BB1; Wed, 10 Apr 2024 20:22:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="acjdbxwv" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00293172BBA; Wed, 10 Apr 2024 20:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712780571; cv=none; b=tsZYaqp+1Nih5tdLaQi3f8y18vKgCJjpASip4/shNsOnK4nIi6iKDl15ZSsbFmI6aVNRGesWnoTMUHgb+gVXrJah0rl7+9TT17X2XV3xTjA2sjvxWyOoNwZxqJKe+OjgFMl8djFXeBLbmrLzSp7JZpr0y5Op7Itv0xUO7C1HIPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712780571; c=relaxed/simple; bh=fOVy9ydfSMk2C1SidmQiLPrlYSYUlhiiUAewIdJa42E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SW7omyHbLm2kXrm0cVjyuMgE54YoOmQUXI4JSO9Vvus0tPjP93W7BSob9RaRhMdm2KAbTxg2kJIpDHLJ9DVPnrdE+c+qDQGYS390qSO11JvgwmpUirQGuRQig5BSl1G4ts8gveOqX0/xC7x10VKDBwhhgJItDvN56byvkufw+zs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=acjdbxwv; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712780570; x=1744316570; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fOVy9ydfSMk2C1SidmQiLPrlYSYUlhiiUAewIdJa42E=; b=acjdbxwvytgjYFy52sCuu8EYpuuveTJBrrfmTtZYcKp1VMmLbwFMobLK cGfBkn+XRKEA45RBPgNE/R7HB5ApYXGfe0Hy38izibJ+pylJ2D4VL1fR3 BFnPqeH/AJfHuMU8EzX+df7Ab0k1WSuFBDwXBi1trLr4zL/ZDXjEvht8+ sSk0qSea07bAtS78xgHAbQNTu7P4tSOFcc36w3Sfg5J0qlDqWNVYyzWii EMClCpmCRJ1+xv6kjpzR4uYkc2h3T3k8mmJOP1JdjAN//7NHakJBPVtxs bI3wqcyryHP6aGfta3V87cyVPfGijZUU5kPYDpfeq95nKbl+K06+HSHC+ w==; X-CSE-ConnectionGUID: OSxV6P1vRXeSmMIwCTDirQ== X-CSE-MsgGUID: TLoREJdKR6GRXIhZY4tw9w== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="11960661" X-IronPort-AV: E=Sophos;i="6.07,191,1708416000"; d="scan'208";a="11960661" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 13:22:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="937095428" X-IronPort-AV: E=Sophos;i="6.07,191,1708416000"; d="scan'208";a="937095428" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 10 Apr 2024 13:22:45 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 091D92A4; Wed, 10 Apr 2024 23:22:44 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Cc: Mika Westerberg , Linus Walleij , Bartosz Golaszewski , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Subject: [PATCH v1 0/2] gpiolib: acpi: A couple of error checks amendmends Date: Wed, 10 Apr 2024 23:21:45 +0300 Message-ID: <20240410202243.1658129-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit One error check is moved and one is dropped. No functional changes intended. Andy Shevchenko (2): gpiolib: acpi: Remove never true check in acpi_get_gpiod_by_index() gpiolib: acpi: Check for errors first in acpi_find_gpio() drivers/gpio/gpiolib-acpi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.43.0.rc1.1336.g36b5255a03ac