From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cedric Le Goater Date: Fri, 20 Mar 2015 08:06:38 +0000 Subject: Re: [lm-sensors] [PATCH v2 4/5] hwmon: (ibmpowernv) change create_hwmon_attr_name() prototype Message-Id: <550BD50E.2040009@fr.ibm.com> List-Id: References: <1423117857-32759-1-git-send-email-clg@fr.ibm.com> <1426787085-9004-5-git-send-email-clg@fr.ibm.com> In-Reply-To: <1426787085-9004-5-git-send-email-clg@fr.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@lm-sensors.org Cc: Stewart Smith , Jean Delvare , Neelesh Gupta , skiboot@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org, Guenter Roeck [ ... ] > @@ -265,10 +261,17 @@ static int create_device_attrs(struct pl > > sdata[count].id = sensor_id; > sdata[count].type = type; > - err = create_hwmon_attr_name(&pdev->dev, type, np->name, > - sdata[count].name); > - if (err) > + > + attr_name = parse_opal_node_name(np->name, type, &opal_index); > + if (IS_ERR(attr_name)) { > + dev_err(&pdev->dev, "Sensor device node name '%s' is invalid\n", > + np->name); > + err = IS_ERR(attr_name); ^^^^^^ Arg. Bad copy/paste. This should be PTR_ERR() ... Do you want a full patchset resend or just a resend of this patch ? or a fix maybe. Sorry for the noise ... C. _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4805F1A2A86 for ; Fri, 20 Mar 2015 19:06:48 +1100 (AEDT) Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 20 Mar 2015 08:06:44 -0000 Message-ID: <550BD50E.2040009@fr.ibm.com> Date: Fri, 20 Mar 2015 09:06:38 +0100 From: Cedric Le Goater MIME-Version: 1.0 To: lm-sensors@lm-sensors.org Subject: Re: [PATCH v2 4/5] hwmon: (ibmpowernv) change create_hwmon_attr_name() prototype References: <1423117857-32759-1-git-send-email-clg@fr.ibm.com> <1426787085-9004-5-git-send-email-clg@fr.ibm.com> In-Reply-To: <1426787085-9004-5-git-send-email-clg@fr.ibm.com> Content-Type: text/plain; charset=utf-8 Cc: Stewart Smith , Jean Delvare , Neelesh Gupta , skiboot@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org, Guenter Roeck List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , [ ... ] > @@ -265,10 +261,17 @@ static int create_device_attrs(struct pl > > sdata[count].id = sensor_id; > sdata[count].type = type; > - err = create_hwmon_attr_name(&pdev->dev, type, np->name, > - sdata[count].name); > - if (err) > + > + attr_name = parse_opal_node_name(np->name, type, &opal_index); > + if (IS_ERR(attr_name)) { > + dev_err(&pdev->dev, "Sensor device node name '%s' is invalid\n", > + np->name); > + err = IS_ERR(attr_name); ^^^^^^ Arg. Bad copy/paste. This should be PTR_ERR() ... Do you want a full patchset resend or just a resend of this patch ? or a fix maybe. Sorry for the noise ... C.