Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1370912rwd; Thu, 25 May 2023 11:33:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ63GJhnO1AHjOdRQnOXa9GQfL3DGIid1J/4+uetHo+LLiSmf7F9WratoTjfjb7mWOhGcr8c X-Received: by 2002:a17:903:22cc:b0:1af:dfd8:940c with SMTP id y12-20020a17090322cc00b001afdfd8940cmr3675766plg.23.1685039636987; Thu, 25 May 2023 11:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685039636; cv=none; d=google.com; s=arc-20160816; b=RDSN+PZ7l6ML9bIUy+dinwTfmvAHdcyHRulcMvc7wjPOu48wD/d2lpxYmLymh0eFG1 1gWr29Uts8HhK5bLIqthALdlbdC48vmH8u90P8QYK2x1nfdJIsSzsAT9YeV0yYP/KhnC XPLFgdHpd6Cds5Cq3Wlw9HRJrJHTedZrD17aSDeKhZ7/EMYAi9fvjRIZb9+YN7EDEyop vJLs6ja4CFsB/c51WGNEudWrHT6KQkb6TRHcb5Xq7vsCpq94+Pm7bQVOqxpwkhMiAauP rhAZ0Q3JGVCZFCVfjKZN56O/UArO9EO5+7ogRB0MF3H41JyxtH7syWFjdXB1mYPv9JEB V5zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LCYamoQ/cXfRxWQHGyTpAloY70tX3p/WOFuPH93ZdDs=; b=Ya1pI/BJ3NwEkC1Kh588rJBKkvr2dNRRRE6+KHfUe5f+o8OPNkQHHOJ2NY4J66qhSj vhSS/cd5Lzfx2jPk+TgEdWlPKDLl4NHp68wBiEbrL+//ewrWkT2Fg+Iq4r5cqTspWF4j Zglo677zrjgxQBKcnoeEx6JA4ulIWtOLp41K2TvcKjQQrSIwZgw348wDCucJ0J1cnJW0 o8JXIhs68nC5GW6+dLXrpoXsIJP/jOYrlAQgHoJe8JbV44EK5EDghn8tDT4ONgk6TetP kKNXfqpuol+Xb4bt+FHSkdFEMUzYLTpf9LTasdmiv1GF+d/hSj8VGgWbj94p/NzfRnU/ 7nxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XlNv5bmB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a170902760400b00192d6fb649dsi1909794pll.242.2023.05.25.11.33.42; Thu, 25 May 2023 11:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XlNv5bmB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbjEYSWt (ORCPT + 99 others); Thu, 25 May 2023 14:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231397AbjEYSWr (ORCPT ); Thu, 25 May 2023 14:22:47 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C58E2; Thu, 25 May 2023 11:22:46 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-6238b15d298so608836d6.0; Thu, 25 May 2023 11:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685038965; x=1687630965; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LCYamoQ/cXfRxWQHGyTpAloY70tX3p/WOFuPH93ZdDs=; b=XlNv5bmBO2/P2UMavmyGO/KB0uJyMnUJVb3bQRFl0h5XQjwYkdvlKy2pdjBhYxFubn TAn9OranLZ0ZLYYP3fzBuU2gc2K36TiK8fUW/x/XbevnIFxdpGXNjrO4PqKBVbNiJPaB LyFzGKg9kYFTq3t/FYxJHm2AE8/kwn5DKWP0fUErSMRWsgLjAaYKseWUvc2gAb6Zt86P 0LVZbkO3/W/VB6E/ig5rpop9QCbTnie0OIgY0tB4mUCO+HlpkSru/1GJ7CAR54qnN9SI C2SKAnM+Z1WJtCPlJnKXVTu/eJDwNPuebq54wh5SAj6VipGTT8iUkboeydLfPIiDncO4 owVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685038965; x=1687630965; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LCYamoQ/cXfRxWQHGyTpAloY70tX3p/WOFuPH93ZdDs=; b=mE3yYcBSC0kXbBUbT4jfVqB4eHC9msHaDBtvx7cr4sBW3CAe10cCPOaplVfIQZ1VO/ 5yU5YZmAyZwJUaC3dx0FkLig3oSwHje885zSJ2dimufiN0eLqkdxSDtG7Lkad5eMSTWk cyXxrEu5HLRJ19hDZ8uEz97w8vMksqYFBE2dIcY2ILdHhyNVQKKO/Qnp8EbqdYc8+XCK YMrXQZtlWy2Pdf7lYWZ+ZpRympNEL5Uifwscp+EINF5NBX5IFUaUDcsYbBiGiB8j8yRq /SlYEiHWeTyapCNGPbWsGsLO7wErZ791GF85WMQ0HocGJP8jgqUMd8uBg0tTJx5fkZ2y iiVw== X-Gm-Message-State: AC+VfDxsPrxZBA3XuZImTn+rYbEPfZfKPeE0rIM20D20gc20igntG403 GbvIF6NQ4LtTWzneL8bhsk2KoNY9tINCwk7wl0qR2mIkQwA= X-Received: by 2002:ad4:5cce:0:b0:625:aa49:ceb0 with SMTP id iu14-20020ad45cce000000b00625aa49ceb0mr2750957qvb.57.1685038964984; Thu, 25 May 2023 11:22:44 -0700 (PDT) MIME-Version: 1.0 References: <20230525160827.15285-1-osmtendev@gmail.com> <5b8700fb-d455-469e-a34d-62cb6f68d324@roeck-us.net> In-Reply-To: <5b8700fb-d455-469e-a34d-62cb6f68d324@roeck-us.net> From: Osama Muhammad Date: Thu, 25 May 2023 23:22:33 +0500 Message-ID: Subject: Re: [PATCH] adm1266.c: Drop error checking for debugfs_create_dir To: Guenter Roeck Cc: jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the new patch not v3. The patch I sent as v2 was a mistake. Please discard the patch I sent earlier as v2 . Apologies for the confusion.Hope it clarifies. Regards, Osmten On Thu, 25 May 2023 at 23:17, Guenter Roeck wrote: > > On Thu, May 25, 2023 at 09:08:27PM +0500, Osama Muhammad wrote: > > This patch fixes the error checking in adm1266.c. > > The DebugFS kernel API is developed in > > a way that the caller can safely ignore the errors that > > occur during the creation of DebugFS nodes. > > > > Signed-off-by: Osama Muhammad > > Confusing. Is this v3 of the patch ? > > Guenter > > > --- > > drivers/hwmon/pmbus/adm1266.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/drivers/hwmon/pmbus/adm1266.c b/drivers/hwmon/pmbus/adm1266.c > > index 1ac2b2f4c570..184d75269d2b 100644 > > --- a/drivers/hwmon/pmbus/adm1266.c > > +++ b/drivers/hwmon/pmbus/adm1266.c > > @@ -340,8 +340,6 @@ static void adm1266_init_debugfs(struct adm1266_data *data) > > return; > > > > data->debugfs_dir = debugfs_create_dir(data->client->name, root); > > - if (!data->debugfs_dir) > > - return; > > > > debugfs_create_devm_seqfile(&data->client->dev, "sequencer_state", data->debugfs_dir, > > adm1266_state_read); > > -- > > 2.34.1 > >