Project

General

Profile

Bug #3108

sys/dev/disk/fd/fd.c:802: suspicious if statement ?

Added by dcb 11 days ago. Updated 10 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Driver
Target version:
-
Start date:
12/04/2017
Due date:
% Done:

0%


Description

dragonfly/sys/dev/disk/fd/fd.c:799] -> [dragonfly/sys/dev/disk/fd/fd.c:802]: (warning) Opposite inner 'if' condition leads to a dead code block.

Source code is

error = isa_dma_acquire(fdc->dmachan);
if (!error) {
isa_dma_init(fdc->dmachan, 128 << 3 /* XXX max secsize */,
M_WAITOK);
if (error) {
isa_dma_release(fdc->dmachan);

History

#1 Updated by zrj 10 days ago

  • Status changed from New to Closed

zrj puts a pointy hat.

Thanks for reporting it, fixed in a8a4cdd.

Also available in: Atom PDF