NetBSD-Bugs archive

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

kern/51774: src/sys/dev/pci/nside.c:174]: (style) Variable 'ndrives' is modified but its new value is never used.



>Number:         51774
>Category:       kern
>Synopsis:       src/sys/dev/pci/nside.c:174]: (style) Variable 'ndrives' is modified but its new value is never used.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 04 09:45:00 +0000 2017
>Originator:     David Binderman
>Release:        cvs-20161231
>Organization:
>Environment:
>Description:
$fgrep ndrives src/sys/dev/pci/nside.c
	int drive, ndrives = 0;
		ndrives++;
$ 

Suggest either use the local variable or delete it.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index