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

Commit baf9ac9f authored by William Hubbs's avatar William Hubbs Committed by Greg Kroah-Hartman
Browse files

staging: speakup: serialio.c style fixes



fix issues reported by checkpatch.pl

Signed-off-by: default avatarWilliam Hubbs <w.d.hubbs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a1768fbb
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@ struct serial_state *spk_serial_init(int index)
		__release_region(&ioport_resource, ser->port, 8);
		err = synth_request_region(ser->port, 8);
		if (err) {
			pr_warn("Unable to allocate port at %lx, errno %i", ser->port, err);
			pr_warn("Unable to allocate port at %lx, errno %i",
				ser->port, err);
			return NULL;
		}
	}
@@ -134,7 +135,8 @@ int wait_for_xmitr(void)
{
	int tmout = SPK_XMITR_TIMEOUT;
	if ((synth->alive) && (timeouts >= NUM_DISABLE_TIMEOUTS)) {
		pr_warn("%s: too many timeouts, deactivating speakup\n", synth->long_name);
		pr_warn("%s: too many timeouts, deactivating speakup\n",
			synth->long_name);
		synth->alive = 0;
		/* No synth any more, so nobody will restart TTYs, and we thus
		 * need to do it ourselves.  Now that there is no synth we can
@@ -155,7 +157,8 @@ int wait_for_xmitr(void)
	while (!((inb_p(speakup_info.port_tts + UART_MSR)) & UART_MSR_CTS)) {
		/* CTS */
		if (--tmout == 0) {
			/* pr_warn("%s: timed out (cts)\n", synth->long_name); */
			/* pr_warn("%s: timed out (cts)\n",
			 * synth->long_name); */
			timeouts++;
			return 0;
		}