From 459d4a2cc5e6111860f2c6a86117a230d98dd4e9 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 6 May 1999 18:44:42 +0000 Subject: Fix up a few easy 'assignment used as truth value' and 'suggest parens around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately. --- sys/compat/linux/linux_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux/linux_ioctl.c') diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 9af33a9..3b4efd9 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_ioctl.c,v 1.30 1998/11/12 00:42:08 jkh Exp $ + * $Id: linux_ioctl.c,v 1.31 1999/04/29 04:37:57 luoqi Exp $ */ #include @@ -732,7 +732,8 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args) case LINUX_TIOCGETD: bsd_line = TTYDISC; - if (error =(*func)(fp, TIOCSETD, (caddr_t)&bsd_line, p)) + error =(*func)(fp, TIOCSETD, (caddr_t)&bsd_line, p); + if (error) return error; switch (bsd_line) { case TTYDISC: -- cgit v1.1