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:
Andy Shevchenko 2024-02-23 21:49:55 +02:00 committed by Lee Jones
parent de584f72ce
commit db8516871b

View File

@ -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;
}