diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2014-09-12 11:33:10 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-09-22 14:11:43 +0200 |
commit | 98d28d0e59160d2d6cb3f6a9050723ac40f89669 (patch) | |
tree | 63565c7e6f05ee98649a509c62ecb72e66b43046 | |
parent | 0f33be009b89d2268e94194dc4fd01a7851b6d51 (diff) | |
download | linux-98d28d0e59160d2d6cb3f6a9050723ac40f89669.tar.gz linux-98d28d0e59160d2d6cb3f6a9050723ac40f89669.tar.bz2 linux-98d28d0e59160d2d6cb3f6a9050723ac40f89669.zip |
ACPI / scan: Correct error return value of create_modalias()
There is a typo, it should be negative -errno instead.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 3bf7764659a4..d5e6ac5042d8 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -130,7 +130,7 @@ static int create_modalias(struct acpi_device *acpi_dev, char *modalias, list_for_each_entry(id, &acpi_dev->pnp.ids, list) { count = snprintf(&modalias[len], size, "%s:", id->id); if (count < 0) - return EINVAL; + return -EINVAL; if (count >= size) return -ENOMEM; len += count; |