mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dmsetup: remove bogus !_report test in _stats_report (Coverity)
There's no point testing _report here in _stats_report: it's always initialised before the function is called and if the check did fail we'd end up freeing an uninitialized dm_task in the error path. tools/dmsetup.c: 4389 in _stats_report() - Declaring variable "dmt" without initializer.
This commit is contained in:
parent
6bd5bf3cb5
commit
3b74824985
@ -4397,9 +4397,6 @@ static int _stats_report(CMD_ARGS)
|
||||
name = argv[1];
|
||||
}
|
||||
|
||||
if (!_report)
|
||||
goto out;
|
||||
|
||||
if (!(dmt = dm_task_create(DM_DEVICE_INFO)))
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user