NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/50879: src/bin/ed/main.c:227]: (style) Redundant condition:



>Number:         50879
>Category:       bin
>Synopsis:       src/bin/ed/main.c:227]: (style) Redundant condition:
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 02 17:50:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160302
>Organization:
>Environment:
>Description:
[src/bin/ed/main.c:227]: (style) Redundant condition: status. '!A || (A && B)' is equivalent to '!A || B'

Source code is

           if (!status || (status &&
                (status = display_lines(current_addr, current_addr,
                    status)) >= 0))

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index