Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1541168pxa; Sun, 16 Aug 2020 02:14:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTeD+AZruDaF77dt70Wrr0qZ9VZnzAui6QfDCQjIsftB387TK2Gh2qexrxoqLmFZ+Uu3iq X-Received: by 2002:a17:906:c7c8:: with SMTP id dc8mr9866800ejb.285.1597569289661; Sun, 16 Aug 2020 02:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597569289; cv=none; d=google.com; s=arc-20160816; b=Zxke9AXI8FWcvn3ncBhTe6o18Rn4exSENWwRT3s4L0/mZZBCKLzMTjvtN2WQZCQ+23 eZPawP/FWe13zBTlQC01XCr+UNfd/6KuWPkG770NHJArnPwPCH9UcwwHey9aPXYQ6mUe fqXX0Mw/1hgnGAvu6mzNfJA5bRyQ2JPPUl3nLDtPX1qY+J4UrLXtvumOEtjEtTrkLxo0 TMOBqSb+SeIWkHmwYCZh0mMzdtpupFfR7TxR+InlwYHdMPd2723eYtfMdDydupZlaXrt tpw7S5TKrWsa88omfafRJzEAcAvVDW/NcQ5cHe0xPg07dNH3sgDE2uzFtBVoraCFmYXV MBDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=y8IbMlSvYeV7TuMHFK5bjwWRDCnF/ixMBMv2DD2BAzY=; b=JTfaInai0BsLXN3EDT/ahWuevAXu3JayjnKFnxZtODI4I413ZBL1MKi+wu4TdHPlzS I2XnfcKIonCyOLmem/H7y9HXe9LwLd97IpXc0kZSt9mQjlIOr4FQOBzCeKA1+gyXMYwK PetRsD6TsGk36nFKGjqJcsmS+aF4A0G6qV4nGhEGvZ2ZXpODbZLKm/mijxFgH1xyY7oX 7Tp9RBM2QnRC2T456kRXu17E/T9vCLEVNc0TLKJBw2w1IO9WzU/3kJBDrn/AuDq6LApM UMKZOHkvB4r3ULa50JaOTkHuVyaDsOoyBdPdimQ+qItM9PAj8pXDsbcOUSxbCTxNZ0WN r+rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LqDQw0LG; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx7si8796411ejb.752.2020.08.16.02.14.26; Sun, 16 Aug 2020 02:14:49 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LqDQw0LG; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730138AbgHPFu5 (ORCPT + 99 others); Sun, 16 Aug 2020 01:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbgHPFu5 (ORCPT ); Sun, 16 Aug 2020 01:50:57 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72B84C061786 for ; Sat, 15 Aug 2020 22:50:57 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 17so6549997pfw.9 for ; Sat, 15 Aug 2020 22:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=y8IbMlSvYeV7TuMHFK5bjwWRDCnF/ixMBMv2DD2BAzY=; b=LqDQw0LGtg9nA50EIOSJkM9B61pEAaPXaGH5qyL7I9qrqz1Nx8wkt+MLpmcLyvNaX/ xnOObUry8iqHpBity5FlQc56RHZUl5crwoygjMZLQJ+Pta5nP+IXJaiQ76qWuVdULIiY 0JgB8aPdi34Ea0xNg3fCR7YS+Wkta7TSnKxr73qYz0m8aTO9cM7uP6yDQYzrCMSL+lna 1xVophSU5jJHQS8Jo43ysexFTF6lwuOvZXuv7F0dOLwX/MUHLskt68N2nnEnwdgwiKOe BlFC9IGWFAXpk8adM16j43T7E2VOtGNs8/nrthEZvIo922lo2mmJb4sZYc7GuJQpX/pb W/cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=y8IbMlSvYeV7TuMHFK5bjwWRDCnF/ixMBMv2DD2BAzY=; b=oON0i7geSGTqkmk3LrLPFd0GCHKEkvGlOCULC2U4NhzdPY/lz0CRKpRC0t1k1Yzm5g +qB2mazqecNAV6mv5+7kJ5ZWpLmdj52YbIreDRgal/Gb0f4YjZgk0xSRGILSEvStgLlU oYAOAB1pFl3FJ8SSKgh6VkSVh6keTbNnOXtSbPxhPnIsSW7PZDh0gYdT60X4FFPqf+oc BoPyxDx4WnGyu24s4A0BkLL5F+nbaO7APU/YRxp+TaZNp5fNsRDClEmFsJQEd7u3Ru/5 5/RttFlzdrUFzBBFbR3zNlGlf9JB8W20ZtxHhrmlib9fYiWJqS1o6otwBQpmbK+ebUD9 80VQ== X-Gm-Message-State: AOAM530j7LM62Kx0iIKHhuk6BXLDkoQrX9oV+8VjKMqA193/USKmXLPn LBAYv5EG9SM3/Tf0VL3Qd3g= X-Received: by 2002:aa7:95b8:: with SMTP id a24mr6942242pfk.219.1597557056656; Sat, 15 Aug 2020 22:50:56 -0700 (PDT) Received: from inforce-server-Z9PE-D8-WS.routereb3c90.com ([106.51.138.45]) by smtp.gmail.com with ESMTPSA id x22sm14009310pfn.41.2020.08.15.22.50.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Aug 2020 22:50:56 -0700 (PDT) From: Vinay Simha BN Cc: Vinay Simha BN , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] drm/bridge/tc358775: Fix for PTR_ERR Date: Sun, 16 Aug 2020 11:20:41 +0530 Message-Id: <1597557042-5154-1-git-send-email-simhavcs@gmail.com> X-Mailer: git-send-email 2.7.4 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org passing zero to 'PTR_ERR' Reported-by: kernel test robot Signed-off-by: Vinay Simha BN --- drivers/gpu/drm/bridge/tc358775.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index 7da15cd..d951cdc 100644 --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -684,7 +684,7 @@ static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id) tc->vdd = devm_regulator_get(dev, "vdd-supply"); if (IS_ERR(tc->vdd)) { - ret = PTR_ERR(tc->vddio); + ret = PTR_ERR(tc->vdd); dev_err(dev, "vdd-supply not found\n"); return ret; } -- 2.7.4