NetBSD-Bugs archive

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

port-ofppc/51827: src/sys/arch/ofppc/pci/ofwpci.c:176: pointless local variable ?



>Number:         51827
>Category:       port-ofppc
>Synopsis:       src/sys/arch/ofppc/pci/ofwpci.c:176: pointless local variable ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-ofppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 11 15:05:00 +0000 2017
>Originator:     David Binderman
>Release:        cvs-20170111
>Organization:
>Environment:
>Description:
src/sys/arch/ofppc/pci/ofwpci.c:176]: (style) Variable 'isprim' is modified but its new value is never used.

$ fgrep isprim src/sys/arch/ofppc/pci/ofwpci.c
	int i, isprim = 0;
		isprim++;
$ 

Suggest delete local variable isprim.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index