Bug 218041 - sys/dev/e1000/if_em.c: PVS-Studio: V646: possible 'else' keyword missing
Summary: sys/dev/e1000/if_em.c: PVS-Studio: V646: possible 'else' keyword missing
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Sean Bruno
Keywords: IntelNetworking, patch
Depends on:
Reported: 2017-03-23 13:00 UTC by Svyatoslav
Modified: 2017-03-24 14:28 UTC (History)
1 user (show)

See Also:

git patch (575 bytes, patch)
2017-03-23 13:00 UTC, Svyatoslav
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Svyatoslav 2017-03-23 13:00:57 UTC
Created attachment 181102 [details]
git patch

We have found and fixed a bug using PVS-Studio tool. PVS-Studio is a static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V646 Consider inspecting the application's logic. It's possible that 'else' keyword is missing. if_em.c 1944
Comment 1 commit-hook freebsd_committer 2017-03-24 14:26:32 UTC
A commit references this bug:

Author: sbruno
Date: Fri Mar 24 14:25:56 UTC 2017
New revision: 315903
URL: https://svnweb.freebsd.org/changeset/base/315903

  Add missing 'else' to 3-state conditional during setup of interrupts.

  We don't want to overwrite the 82574 interrupt setup with a different

  PR:		218041
  Submitted by:	razmyslov@viva64.com

Comment 2 Sean Bruno freebsd_committer 2017-03-24 14:28:11 UTC
Thanks for spending the time to put together this bug.