From: Dan Carpenter <dan.carpenter@oracle.com>
To: isubramanian@apm.com
Cc: linux-acpi@vger.kernel.org
Subject: [bug report] drivers: net: xgene: Add backward compatibility
Date: Wed, 3 Aug 2016 13:39:34 +0300 [thread overview]
Message-ID: <20160803103934.GA22073@mwanda> (raw)
Hello Iyappan Subramanian,
The patch 8089a96f601b: "drivers: net: xgene: Add backward
compatibility" from Jul 25, 2016, leads to the following static
checker warning:
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c:744 acpi_phy_find_device()
warn: passing negative value to 'ACPI_FAILURE((-71))'
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
735 static struct acpi_device *acpi_phy_find_device(struct device *dev)
736 {
737 struct acpi_reference_args args;
738 struct fwnode_handle *fw_node;
739 int status;
740
741 fw_node = acpi_fwnode_handle(ACPI_COMPANION(dev));
742 status = acpi_node_get_property_reference(fw_node, "phy-handle", 0,
743 &args);
acpi_node_get_property_reference() returns normal kernel error codes,
not ACPI error codes. It doesn't cause a runtime problem but it's
probably should just be "if (status) {".
744 if (ACPI_FAILURE(status)) {
745 dev_dbg(dev, "No matching phy in ACPI table\n");
746 return NULL;
747 }
748
749 return args.adev;
750 }
regards,
dan carpenter
reply other threads:[~2016-08-03 10:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160803103934.GA22073@mwanda \
--to=dan.carpenter@oracle.com \
--cc=isubramanian@apm.com \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox