Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2008 04:52:17 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 148775 for review
Message-ID:  <200808290452.m7T4qHto054673@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=148775

Change 148775 by ed@ed_dull on 2008/08/29 04:51:45

	Small typo in snp -- not really incorrect, but sloppy.
	
	Don't use a while-loop to check the value of uio->uio_resid.
	
	Reported by:	Sam Banks

Affected files ...

.. //depot/projects/mpsafetty/sys/dev/snp/snp.c#13 edit

Differences ...

==== //depot/projects/mpsafetty/sys/dev/snp/snp.c#13 (text+ko) ====

@@ -141,7 +141,7 @@
 	struct snp_softc *ss;
 	struct tty *tp;
 
-	while (uio->uio_resid == 0)
+	if (uio->uio_resid == 0)
 		return (0);
 
 	error = devfs_get_cdevpriv((void **)&ss);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808290452.m7T4qHto054673>