We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37becf6 commit e8c6113Copy full SHA for e8c6113
drivers/hid/intel-ish-hid/ishtp/bus.c
@@ -380,11 +380,9 @@ static struct ishtp_cl_device *ishtp_bus_add_device(struct ishtp_device *dev,
380
struct ishtp_cl_device *device;
381
int status;
382
unsigned long flags;
383
- struct list_head *pos;
384
385
spin_lock_irqsave(&dev->device_list_lock, flags);
386
- list_for_each(pos, &dev->device_list) {
387
- device = list_entry(pos, struct ishtp_cl_device, device_link);
+ list_for_each_entry(device, &dev->device_list, device_link) {
388
if (!strcmp(name, dev_name(&device->dev))) {
389
device->fw_client = &dev->fw_clients[
390
dev->fw_client_presentation_num - 1];
0 commit comments