diff options
author | Yuanjun Gong <ruc_gongyuanjun@163.com> | 2025-05-13 15:37:32 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2025-06-22 20:28:53 +0300 |
commit | a9aece5d7e8fa8bc74f1827d2cf1b189ffe7e8c8 (patch) | |
tree | c27a621cf69f695e702a0a1a45119319b8e99f6f /net/unix/af_unix.c | |
parent | 22e4d29f081df8a10f1c062d3d952bb876eb9bdc (diff) | |
download | linux-a9aece5d7e8fa8bc74f1827d2cf1b189ffe7e8c8.tar.xz |
power: return the correct error code
In POWER_SUPPLY_PROP_MODEL_NAME branch of max1720x_battery_get_property(),
program would return -ENODEV out of FIELD_GET error, but it's better also
considering the error code returned by regmap_read() in case it fails.
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://lore.kernel.org/r/20250513123732.3041577-1-ruc_gongyuanjun@163.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions