[DragonFlyBSD - Bug #3077] (New) sys/dev/sound/pci/hda/hdaa.c:3081: dead code ?

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Oct 11 02:02:38 PDT 2017


Issue #3077 has been reported by dcb.

----------------------------------------
Bug #3077: sys/dev/sound/pci/hda/hdaa.c:3081: dead code ?
http://bugs.dragonflybsd.org/issues/3077

* Author: dcb
* Status: New
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
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



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list