mfd: timberdale: Remove redundant assignment to variable err
authorColin Ian King <colin.i.king@gmail.com>
Mon, 15 Apr 2024 10:26:32 +0000 (11:26 +0100)
committerLee Jones <lee@kernel.org>
Fri, 10 May 2024 14:39:17 +0000 (15:39 +0100)
commit11db5421837a6627bd02efb48973f19e64804559
tree4503ba678a5def82778a58ca853622eb9bed748e
parent6cb72bd486806f5d6b77d498646dba9fb5e3e597
mfd: timberdale: Remove redundant assignment to variable err

The variable err is being assigned -ENODEV and then err is being
re-assigned the same error value via the error exit label err_mfd.
The assignment is redundant and can be removed.

Cleans up clang scan build warning:
drivers/mfd/timberdale.c:768:3: warning: Value stored to 'err' is
never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20240415102632.484411-1-colin.i.king@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/timberdale.c