Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b7cc429 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (5820): Cleanup on cinergyT2: Remove unneeded if(1)



Before kernel 2.6.14, the driver checked for status before stopping the
thread. So, a compatibility test did exist. After 2.6.14, the
        if (state)
were replaced by:
        if (1)
However, it makes no sense to keep the if(1).

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 18f3fa1e
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -1000,7 +1000,6 @@ static int cinergyt2_suspend (struct usb_interface *intf, pm_message_t state)
	if (cinergyt2->disconnect_pending || mutex_lock_interruptible(&cinergyt2->wq_sem))
		return -ERESTARTSYS;

	if (1) {
	cinergyt2_suspend_rc(cinergyt2);
	cancel_rearming_delayed_work(&cinergyt2->query_work);

@@ -1009,9 +1008,7 @@ static int cinergyt2_suspend (struct usb_interface *intf, pm_message_t state)
		cinergyt2_stop_stream_xfer(cinergyt2);
	cinergyt2_sleep(cinergyt2, 1);
	mutex_unlock(&cinergyt2->sem);
	}

	mutex_unlock(&cinergyt2->wq_sem);
	return 0;
}