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

Commit f7de67f0 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman
Browse files

staging/irda/net: Drop extraneous parentheses around test



Noticed during Clang builds. This drops the redundant parentheses.

Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3eb23426
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1668,7 +1668,7 @@ static int irlmp_slsap_inuse(__u8 slsap_sel)
			IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC,
				    goto errlsap;);

			if ((self->slsap_sel == slsap_sel)) {
			if (self->slsap_sel == slsap_sel) {
				pr_debug("Source LSAP selector=%02x in use\n",
					 self->slsap_sel);
				goto errlsap;
@@ -1693,7 +1693,7 @@ static int irlmp_slsap_inuse(__u8 slsap_sel)
	self = (struct lsap_cb *) hashbin_get_first(irlmp->unconnected_lsaps);
	while (self != NULL) {
		IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, goto erruncon;);
		if ((self->slsap_sel == slsap_sel)) {
		if (self->slsap_sel == slsap_sel) {
			pr_debug("Source LSAP selector=%02x in use (unconnected)\n",
				 self->slsap_sel);
			goto erruncon;