Skip to content

Commit

Permalink
ChannelImporter: Fix Coverity 700307 Logically dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Harrison committed Jul 14, 2013
1 parent 6f8eff5 commit e549ac5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mythtv/libs/libmythtv/channelscan/channelimporter.cpp
Expand Up @@ -1303,12 +1303,11 @@ ChannelImporter::QueryUserDelete(const QString &msg)
cin >> ret;
bool ok;
uint val = QString(ret.c_str()).toUInt(&ok);
if (ok && (1 <= val) && (val <= 3))
if (ok && (val == 1 || val == 2 || val == 4))
{
action = (1 == val) ? kDeleteAll : action;
action = (2 == val) ? kDeleteInvisibleAll : action;
//action = (3 == val) ? kDeleteManual : action;
action = (3 == val) ? kDeleteIgnoreAll : action;
action = (4 == val) ? kDeleteIgnoreAll : action;
break;
}
Expand Down

0 comments on commit e549ac5

Please sign in to comment.