NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-x68k/50859: src/sys/arch/x68k/dev/intio.c: 2 * redundant conditions
>Number: 50859
>Category: port-x68k
>Synopsis: src/sys/arch/x68k/dev/intio.c: 2 * redundant conditions
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-x68k-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 26 17:40:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160226
>Organization:
>Environment:
>Description:
1.
[src/sys/arch/x68k/dev/intio.c:517]: (style) Redundant condition: error!=0. 'A || (!A && B)' is equivalent to 'A || B'
Source code is
if (error == 0 ||
(error != 0 && (cookie->id_flags & ID_MIGHT_NEED_BOUNCE) == 0))
2.
[src/sys/arch/x68k/dev/intio.c:583]: (style) Redundant condition: error!=0. 'A || (!A && B)' is equivalent to 'A || B'
Source code is
if (error == 0 ||
(error != 0 && (cookie->id_flags & ID_MIGHT_NEED_BOUNCE) == 0))
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index