Message ID | 8a76de25cefb533d94dfe35062bbd9a8e72f4bb9.1713971415.git.christophe.jaillet@wanadoo.fr |
---|---|
State | Accepted |
Commit | 57b323b3dff6bdc318244bcc43d086e563b36b61 |
Headers | show |
Series | mfd: ssbi: Remove an unused field in struct ssbi | expand |
On Wed, 24 Apr 2024 17:10:29 +0200, Christophe JAILLET wrote: > In "struct ssbi", the 'slave' field is unused. > Remove it. > > Found with cppcheck, unusedStructMember. > > Applied, thanks! [1/1] mfd: ssbi: Remove an unused field in struct ssbi commit: daa2efd8f49cc2dd6d900e7f5f6b6077a8bdfa87 -- Lee Jones [李琼斯]
diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c index b0b0be483dbf..f849f2d34ec7 100644 --- a/drivers/mfd/ssbi.c +++ b/drivers/mfd/ssbi.c @@ -64,7 +64,6 @@ enum ssbi_controller_type { }; struct ssbi { - struct device *slave; void __iomem *base; spinlock_t lock; enum ssbi_controller_type controller_type;
In "struct ssbi", the 'slave' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> --- Compile tested only. This is a left-over from commit 97f00f7120fe ("SSBI: Convert SSBI to device tree") --- drivers/mfd/ssbi.c | 1 - 1 file changed, 1 deletion(-)