Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1329084 > unrolled thread
| Started by | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| First post | 2016-02-08 15:10 +0100 |
| Last post | 2016-02-08 15:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v1 2/2] device-property-convert-to-use-match_string-helper fix Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-02-08 15:10 +0100
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| Date | 2016-02-08 15:10 +0100 |
| Subject | [PATCH v1 2/2] device-property-convert-to-use-match_string-helper fix |
| Message-ID | <qZUFR-6nz-19@gated-at.bofh.it> |
Since match_string() returns -EINVAL let's convert it to -ENODATA as designed by device property API. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/base/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/property.c b/drivers/base/property.c index f902b55..167f0a9 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -665,6 +665,8 @@ int fwnode_property_match_string(struct fwnode_handle *fwnode, goto out; ret = match_string(values, nval, string); + if (ret < 0) + ret = -ENODATA; out: kfree(values); return ret; -- 2.7.0
Back to top | Article view | linux.kernel
csiph-web