Project

General

Profile

Actions

Bug #3077

closed

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

Added by dcb about 7 years ago. Updated about 7 years ago.

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

0%

Estimated time:

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

Actions #1

Updated by dillon about 7 years ago

  • Status changed from New to Closed

Committed removal

-Matt

Actions

Also available in: Atom PDF