mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
mfd: kempld: Remove dead code
scnprintf() never returns negative value, drop the respective dead code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240223195113.880121-7-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
de584f72ce
commit
db8516871b
@ -294,11 +294,8 @@ static int kempld_get_info(struct kempld_device_data *pld)
|
||||
else
|
||||
minor = (pld->info.minor - 10) + 'A';
|
||||
|
||||
ret = scnprintf(pld->info.version, sizeof(pld->info.version),
|
||||
"P%X%c%c.%04X", pld->info.number, major, minor,
|
||||
pld->info.buildnr);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
scnprintf(pld->info.version, sizeof(pld->info.version), "P%X%c%c.%04X",
|
||||
pld->info.number, major, minor, pld->info.buildnr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user