NetBSD-Bugs archive

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

kern/54610: src/sys/kern/sys_ptrace_common.c:1264:34: style: Same expression



>Number:         54610
>Category:       kern
>Synopsis:       src/sys/kern/sys_ptrace_common.c:1264:34: style: Same expression
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 08 08:25:00 +0000 2019
>Originator:     David Binderman
>Release:        20191008
>Organization:
>Environment:
>Description:
src/sys/kern/sys_ptrace_common.c:1264:34: style: Same expression on both sides of '|'. [duplicateExpression]

Source code is

   if (lt->l_flag & (LW_WSUSPEND | LW_WSUSPEND)) {

Maybe better code:

  if (lt->l_flag &
                    (LW_WSUSPEND | LW_DBGSUSPEND)) {

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index