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

Commit e0a7f1f0 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman
Browse files

parport: avoid assignment in if



It is not an usual practise to assign some value to a variable in the if
test condition.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e732b93c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1120,7 +1120,8 @@ int parport_claim(struct pardevice *dev)

	/* Preempt any current device */
	write_lock_irqsave(&port->cad_lock, flags);
	if ((oldcad = port->cad) != NULL) {
	oldcad = port->cad;
	if (oldcad) {
		if (oldcad->preempt) {
			if (oldcad->preempt(oldcad->private))
				goto blocked;