Project

General

Profile

Bug #3077

sys/dev/sound/pci/hda/hdaa.c:3081: dead code ?

Added by dcb 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
10/11/2017
Due date:
% Done:

0%


Description

dragonfly/sys/dev/sound/pci/hda/hdaa.c:3080] -> [dragonfly/sys/dev/sound/pci/hda/hdaa.c:3081]: (warning) Opposite inner 'if' condition leads to a dead code block.

Source code is

for (i = devinfo->startnode; cnt < max && i < devinfo->endnode; i++) {
if (cnt >= max) {
device_printf(devinfo->dev, "%s: Ctl overflow!\n",
__func__);
break;
}

Suggest remove dead code

History

#1 Updated by dillon about 2 months ago

  • Status changed from New to Closed

Committed removal

-Matt

Also available in: Atom PDF