From patchwork Sat Apr 15 10:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13212508 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82121C77B76 for ; Sat, 15 Apr 2023 11:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TAi9sf8qDcbA9suDRc4NfDWhATbfHHYP5IroEjFPPeY=; b=AIj3SWNu1jazVx xeOvlREObRziQeprE2C3ieXwtaf9PkwChW9tlU86Qmv2Xdu1BXnRE7oQ8IOnNPvMehyt6h8WCjKDH 8lEiKJm01FpC09GO2uGYORPyf7ZPRfIcXNnhtPtXUDn+VVZP4ZimTaFBHQgDnH5jbimiLCCST8CNJ sb1WretMOqI6hSUZ8Y55+Y7KCORZx1JGvi0hVlhEDD5q/nm02Z12TMz+uTb/vIrBA6doyfQjzXBLI hHTRMKUJqjwhpY4BPRWCoH6XUBJ8/u0yGhEVVMAkYIdXxik6acaJ8t/U46MV7BE9O30yR5mCO1DYE e5aPBINN+bYEs+Q5dyTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pneMI-00C6aX-2Q; Sat, 15 Apr 2023 11:46:22 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pneMC-00C6Yu-0R for linux-arm-kernel@bombadil.infradead.org; Sat, 15 Apr 2023 11:46:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=/GpG6BrvNSByzEWolZqrrfdu9R1OUjer6DD5hZw47Yw=; b=oIIPZmDiQOaolmdJljlH9se9Rf EPTcfPEmsZadGcKw79vIuf3qTBWD3KzOA5EuZIO6LmmbPZWCDvwwITDV95Kudk5sUCrdCGn/VrD7C nMGCTSrDhwx48CPCa5awkF7aiKpp/f3D+Tn8owt9UAPAHxBdgHyjsQ3feIvIaL3X3CeS+jhxzztjQ Zsb7j398WXB7RvO/yfa4pnPfpOLi/Yqnb8KgI8YQarXH4qcdGIV2VFlkkSrad9tN6jUUeTbH8PkNc jhxNDwIJldWpyxS/gO3dozhkkn903QVS2jtsrvxWx/uxVKTZh+IqoJq7kRrYof6yKMvRXVMz7GBhq 6BG7kNoQ==; Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pndNW-00Fzsc-22 for linux-arm-kernel@lists.infradead.org; Sat, 15 Apr 2023 10:43:37 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-94f32588c13so3188266b.2 for ; Sat, 15 Apr 2023 03:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681555412; x=1684147412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/GpG6BrvNSByzEWolZqrrfdu9R1OUjer6DD5hZw47Yw=; b=SR8ucM9B6N4/Wvn8RZz18nK/iv9LqIsfQMhAigP33Ivuy1+kbRYO27mZnKqAw9y32Q AtP7SHwTbB1Ta86j0WTR90Vr5Sv4sRTCESymR2jgG6C0T68joTKZMiC6q5TmJOYPhei+ 9RN7yF2WD6pzC4WY+6xBu7fetubohElOypwB8YtBL5mSoNSHZTJGg3P88X89GyGSsmF9 o5I1QUHoJPRXy9MT2CQO0/15Bs4YSxLucV2pTlosuR444CvBnflp89KFthAvBD0t9ebD 0X5W4zvgfcyREyr2E8jXdWxHCcJTVZfI5WvBMTEQNupFKwwkUInT1jOV7ZJt71X5S/Ah bpdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681555412; x=1684147412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/GpG6BrvNSByzEWolZqrrfdu9R1OUjer6DD5hZw47Yw=; b=OMHzgwYXY8oxerxM6RnLf31VC6p6YKa+Dx/kcgaCz/5MZ9qsDK6yxR6kkhzOXelyTx l0iMbcbRNfUwbk7ones2ZnrymT6HRNCb7AbefIECOtVpInayLEiAqnbHyzMDvWfopywF NilGJc4INI6yiEpyZXWgdvRgXl1qtv8hcyXS869OJgmhnOTfxxe+J71s6oH1aLT1QCG9 hZ4NPZBiAcWgQF0uG5i3wlYFzS54wyBxhw5zPG9tHrNDVzfxvwkV2FbBW9kRm0bn8HjL ZVONF6N0kBSH4JBOOAQ7YK+GLFnxg/MEGVGoFhi0/Y8JkmwKTk3aBxy0yl+CQ/XPyio5 sk4g== X-Gm-Message-State: AAQBX9fEfYF6NERSKS7BPLc9kJBufS7UAdsepAVLhjU6AsQOjbkEHuao vf/FGW/zqWVeuew5Yg0hgIFScA== X-Google-Smtp-Source: AKy350bNSPXliC1HMcFk7yScGBMVjoz+38R0GHGZie0X0VdcqMt5F+DiXUR3dOCZbJKlmXnJFmQmCw== X-Received: by 2002:aa7:dd59:0:b0:4fc:9c79:86bc with SMTP id o25-20020aa7dd59000000b004fc9c7986bcmr9142694edw.42.1681555412732; Sat, 15 Apr 2023 03:43:32 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:a3bf:4ed:6c53:2a36]) by smtp.gmail.com with ESMTPSA id b10-20020aa7d48a000000b004fd1ee3f723sm3157481edr.67.2023.04.15.03.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Apr 2023 03:43:32 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , linux-kernel@vger.kernel.org Cc: Evgeniy Polyakov , Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , soc@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 15/15] w1: gpio: remove unnecessary ENOMEM messages Date: Sat, 15 Apr 2023 12:43:04 +0200 Message-Id: <20230415104304.104134-16-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230415104304.104134-1-krzysztof.kozlowski@linaro.org> References: <20230415104304.104134-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230415_114334_856850_18E52A7B X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Core already prints detailed reports on out of memory: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Krzysztof Kozlowski --- drivers/w1/masters/w1-gpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c index d4632aace402..ac7ad63f8f8d 100644 --- a/drivers/w1/masters/w1-gpio.c +++ b/drivers/w1/masters/w1-gpio.c @@ -101,10 +101,8 @@ static int w1_gpio_probe(struct platform_device *pdev) master = devm_kzalloc(dev, sizeof(struct w1_bus_master), GFP_KERNEL); - if (!master) { - dev_err(dev, "Out of memory\n"); + if (!master) return -ENOMEM; - } pdata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags); if (IS_ERR(pdata->gpiod)) {