Skip to contentSkip to conversation

iio: temperature: max30208: Remove an unused field in struct max30208_data

PATCH Applied Christophe JAILLET 2 participants 2 messages May 1, 2024 – May 4, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: temperature: max30208: Remove an unused field in struct max30208_data

In "struct max30208_data", the 'indio_dev' field is unused. Remove it.

Found with cppcheck, unusedStructMember.

---
Compile tested only.

It was added in the initial commit 9ee95ae4cffd ("iio: temperature: Add driver support for Maxim MAX30208") but was never used.

---
 drivers/iio/temperature/max30208.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/temperature/max30208.c +0 -1
index 48be03852cd8..720469f9dc36 100644
@@ -34,7 +34,6 @@
 
 struct max30208_data {
 	struct i2c_client *client;
-	struct iio_dev *indio_dev;
 	struct mutex lock; /* Lock to prevent concurrent reads of temperature readings */
 };
 
Signature · 1 line
2.44.0
maintainer Applied
#1 lore raw
Quoted 6 lines · On Wed, 1 May 2024 11:19:41 +0200 Christophe JAILLET…

In "struct max30208_data", the 'indio_dev' field is unused. Remove it.

Found with cppcheck, unusedStructMember.

Applied,

Thanks,

J

Quoted 21 lines

---
Compile tested only.

It was added in the initial commit 9ee95ae4cffd ("iio: temperature: Add driver support for Maxim MAX30208") but was never used.

---
 drivers/iio/temperature/max30208.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/temperature/max30208.c +0 -1
index 48be03852cd8..720469f9dc36 100644
@@ -34,7 +34,6 @@
 
 struct max30208_data {
 	struct i2c_client *client;
-	struct iio_dev *indio_dev;
 	struct mutex lock; /* Lock to prevent concurrent reads of temperature readings */
 };