diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index 1fea839e3c58..6b7e220a4c1b 100644 --- a/drivers/staging/most/aim-v4l2/video.c +++ b/drivers/staging/most/aim-v4l2/video.c @@ -393,11 +393,11 @@ static const struct video_device aim_videodev_template = { static struct most_video_dev *get_aim_dev( struct most_interface *iface, int channel_idx) { - struct most_video_dev *mdev, *tmp; + struct most_video_dev *mdev; unsigned long flags; spin_lock_irqsave(&list_lock, flags); - list_for_each_entry_safe(mdev, tmp, &video_devices, list) { + list_for_each_entry(mdev, &video_devices, list) { if (mdev->iface == iface && mdev->ch_idx == channel_idx) { spin_unlock_irqrestore(&list_lock, flags); return mdev;