NetBSD-Bugs archive

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

kern/51775: src/sys/dev/raidframe/rf_aselect.c:270]: (style) Variable 'numUnitDags' set but not used ?



>Number:         51775
>Category:       kern
>Synopsis:       src/sys/dev/raidframe/rf_aselect.c:270]: (style) Variable 'numUnitDags' set but not 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:50:00 +0000 2017
>Originator:     David Binderman
>Release:        cvs-20161231
>Organization:
>Environment:
>Description:
src/sys/dev/raidframe/rf_aselect.c:270]: (style) Variable 'numUnitDags' is modified but its new value is never used.

$ fgrep numUnitDags src/sys/dev/raidframe/rf_aselect.c 
	int     stripeNum, numUnitDags = 0, stripeUnitNum, numBlockDags = 0;
					numUnitDags++;
$
 
Suggest either use the local variable or delete it.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index