Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1741409lqg; Mon, 4 Mar 2024 02:13:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVeI+4g0O8B9EYJ7EOL9H44Fsa4xWD+7th1C2/647XIAhxM2V0pQmYp7j/SFw1sIj0k8x3yJNpd/XfWODCdNw0KyUtFhLbz9Zx3gy/5XA== X-Google-Smtp-Source: AGHT+IGbBCWGw5xPKutn6o/OB3s4CbepDLI3LijaqDwAZKKInknP4Ghmi7ZBf6JmoKJq54W7QSib X-Received: by 2002:ac2:5ddc:0:b0:512:f5e7:4ce9 with SMTP id x28-20020ac25ddc000000b00512f5e74ce9mr5184122lfq.18.1709547222159; Mon, 04 Mar 2024 02:13:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709547222; cv=pass; d=google.com; s=arc-20160816; b=g1xYtKMKrkvjhaPKmiRpgO/bUuvyNw87r1Z4DU0ECmnwzXdYZiIefHbVJHBhlpD+FI tvALBdl9im5yL/76L/zE3pKI/3p9xeAwIhk5fIoyVmOauUvuJnk44S56z/wKLIby/qxr DTFwRqiiWDopguzsFcxydv1b5Be+Uw986XgvnHI24JW6wuzZHASjcH1rvCwelioLItYJ WdY5W2xG/bvSYjF3odmY9lw7hRSAd5k39dUp4zFykGVCkZMG7EYCAYM0rv+oqJa7jTrC XgsRg62iH4PfD3jZM3INo8M0AWquROWo91x/bCQZ7phO6H4vJvRPOheQRbD26fPaOov6 VBWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=qkscxkyuLKmNGJ13PCRB5gPU2riBC6Uyvc9FkqhiTrI=; fh=G4kuFvxClRH4eCFR7/UZBysTE7sfSdZ2VrekZF1GJ4s=; b=ucQbnG0MhfZJutRc3Hc5yLlex2ZbwO3y3GnyGjOLMFJHjy2wjCytt6inqGSyp4ugSb t5M4ik1KuYQaEtBhrCOsdZ7YnHMQlZQfhj9t4o6d9gHRn26FokPXsQiYMOH8volYKEri dSq0L7UeXsdbl7QjmtAbfdTzr7p8QuLUbUphN2yCzFmv4hLXgbzXvHAsZy6u3AM5L2V6 KMrOPRsYyXOjx3G35IHV0lNOcyz69LevU8DhVys0S7iAmaujR+gMVWgBnU0aJ07ytx8J MRoxNbYw5oWGdB5OKBGfeuDGDz+zy43Jj9w4vzEjz20/DN0Wy0Fu3eEO/s8X/dAf2q8p A0Dg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZF++zhKW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qk31-20020a1709077f9f00b00a4515b49cb3si1217908ejc.90.2024.03.04.02.13.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:13:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZF++zhKW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id C17391F222E2 for ; Mon, 4 Mar 2024 10:13:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11DA6225AA; Mon, 4 Mar 2024 10:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZF++zhKW" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EE2736AEB for ; Mon, 4 Mar 2024 10:12:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547126; cv=none; b=KP4bnhy08gJFOFF/1UwaIRz91ItTEffwsVsiazp938EQ9D5b5L6daWDdWLxh/ll0d9dWLunSlDq0+2AJSYm9m4ME1mAsjPaYBByEEP0eoEKYaCewzZbh97rwAscjbG8aOtktcaXkF77CtoPn/mciUfzAXh8sn5mz6FQqAtEnYvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547126; c=relaxed/simple; bh=IQiBIX1ptsqUCh17mmsk9JR1+iQzH5+7RhWBq7Lbzeo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hLuwvOThUcImCevVMEOrR4hvzN4zR6DCV8xWAzPnEKrjuJZKal6dAwxnIr/h9f32w/nhJJaS827vTXalI0/KqA1DeEwZrHVV/MzQKMTp5KHeKE+hIOTj8PzD1L9vTzQotmvv0Tpi1YItV6jbxRJUDkv1ZS3OP8xyUE7Gum0nrNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZF++zhKW; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56657bcd555so5419435a12.3 for ; Mon, 04 Mar 2024 02:12:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709547123; x=1710151923; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qkscxkyuLKmNGJ13PCRB5gPU2riBC6Uyvc9FkqhiTrI=; b=ZF++zhKWxiOJzapXn9HafgVxReE2bOHURe9BcEtLuTJMDVzCO+XDbAy/Mkk7r+ZUIE dKoXXDOmB5l9TXaH7NFc6UfZI1JUDs5J296h44Kdq0hOQNvKsI4BFZrHGdhgO03reRAM tmPwk+VMx7VlRTVqNhC6hT/SxkV/1jeb1y9PTe06vqj68XdMdfUPwQWwdLGgkbxKV+G9 8FFLwdlwAB04XD0veNVAV4ImwinpIVZAsuvn5n/XMz4GQT0xtmBxlNOvsaVLal0g6diR z7gImo05oSVUvCOcfdOF5jN3EIbWuMovZlSJ5WAIzPGNUNxHbFpf+vg1ZVS/FuiS8Udo LOXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709547123; x=1710151923; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qkscxkyuLKmNGJ13PCRB5gPU2riBC6Uyvc9FkqhiTrI=; b=lw3ygBKhlTufG7HduiYFasEsP9diQk4qqil/x4l02a4o7ui5GcHNsDTJ1IM36kYDwA zewJBvbgDuft8YilS6c8RF//RDl2EU86ytRp6otrhYZ/OyfEJQjw2WdsZaPWfsEonC4X Graj3L+4xRq4WMIihkP8thhv0W4wrTQsaA5wZgh7vzMUvrwXtbT0LpeNneaH1L26vsQz jPrNpDMM24fI397SUhrn/yNNqPwPO1hHkxNcKKL/hKMkHHaoFk3tXTZmZPLwzo1dzvwv rDKjc+oz/t44ZBOryqSFTueZ+kArGnNPUi8fRKGbyOxHZHuD9NteZYVjY4d07HCHUyYm mnrw== X-Forwarded-Encrypted: i=1; AJvYcCUpPLE8x2HpQ7NRIoepbqdIjJUcxxVCgxj8bxcqOOwu7JopH6U33Bz2x5dBdcS0CM7cyo/x3uohmWxqRrWlFy3NhdgOtY1kfAXwHQJA X-Gm-Message-State: AOJu0YwftgQJJwEpaSN2LOTLDDV8pSpgBnPAeO81GfttQeiCqyCjyaEo mon+x/WZn8mWDuEPgA/0GIxUbJayvSwT0NRAvMhd+/DyovDzt4Svmy83YpArsUE= X-Received: by 2002:a17:906:1c90:b0:a44:86d4:70a1 with SMTP id g16-20020a1709061c9000b00a4486d470a1mr5679948ejh.59.1709547123118; Mon, 04 Mar 2024 02:12:03 -0800 (PST) Received: from [127.0.1.1] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id ef11-20020a17090697cb00b00a44bc99cd89sm2938481ejb.42.2024.03.04.02.12.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:12:02 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 04 Mar 2024 11:11:44 +0100 Subject: [PATCH 7/7] backlight: pandora_bl: Drop unneeded ENOMEM error message Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240304-backlight-probe-v1-7-e5f57d0df6e6@linaro.org> References: <20240304-backlight-probe-v1-0-e5f57d0df6e6@linaro.org> In-Reply-To: <20240304-backlight-probe-v1-0-e5f57d0df6e6@linaro.org> To: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=861; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=IQiBIX1ptsqUCh17mmsk9JR1+iQzH5+7RhWBq7Lbzeo=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBl5Z5mnfBQ5T6LEu6wSHreyeIddxcFaUtThG5hR a7P7xtBFQOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZeWeZgAKCRDBN2bmhouD 1+bBEACC1mknggxkpb8buuVG+0wI2sOUPaDlTNanVp8VneZ1l/BNkKBQ16feuUhfuQwjRbtWsUf ZuSeoXHhpFP4r86SdVkbEVDk2lHP0KnDRoyq62CN2cvKV/jH1gOV+dRRjQwaQ/+1O2GMx0mPbDu iaqhbqb5oqrns4Ycj+pUyBUD0pjID8r0TnOsriFXB2OKlIj30CaBhcaq8P6ChS8t7bP6qgDjSqs jUOVa9GFE0IiX7CJhIBtOO7Uk6GaQ12WeQxZuikLzwrGgiv9PCvohPt6a9xgmqEyDchFF/V+IwX SXAHRzQdkez8EzzNYFlwKbaRtTOzF9uPqZvzLJowH+HXPrBowr7kCJ0XlBosRMxlNkeGPjGC8zF klwHa4J6M4rQnL27yx8qzkeaTjuHw2OCKdyrBEFikRSKRNWw0tVjgKWdmMJ5uP7LXnLGxiK330C UbwI0ZPdFqScbrPDf83rLA0+DP+abdH2Wr9o0vbFTuEW8NxPwqys23rwj29dj7O3Hdw5okM306X kMaeqS5zhQ0Oq8XJrf6wUIGnGJkLS9anoWh5FJTS+xQWg0V4kfM1v3bc7klOT2G67xTXllFT3gG TAkA+gLn74eZZxkaYbAwdLovsbQnn1Ey7Zoui+W7wRwR8NgCwbgKmETXcsNMbdkRGvXyAstq/Sh X7Mj1VxLbKE+uxg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core code already prints detailed information about failure of memory allocation. Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/pandora_bl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/backlight/pandora_bl.c b/drivers/video/backlight/pandora_bl.c index f946470ce9f6..51faa889e01f 100644 --- a/drivers/video/backlight/pandora_bl.c +++ b/drivers/video/backlight/pandora_bl.c @@ -114,10 +114,8 @@ static int pandora_backlight_probe(struct platform_device *pdev) u8 r; priv = devm_kmalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); - if (!priv) { - dev_err(&pdev->dev, "failed to allocate driver private data\n"); + if (!priv) return -ENOMEM; - } memset(&props, 0, sizeof(props)); props.max_brightness = MAX_USER_VALUE; -- 2.34.1