diff options
| author | Tiwei Bie <tiwei.btw@antgroup.com> | 2026-04-12 00:37:05 +0800 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-09-24 16:18:52 +0200 |
| commit | 28ada50b743e956731280b817572335f33890a0f (patch) | |
| tree | d9503f3ecc87a8bb62a460ec1ac411ded054d3ba /samples/livepatch/livepatch-sample.c | |
| parent | 5bde583d13efe2592803e3bffaf5462b05003c72 (diff) | |
um: vector: Remove unnecessary NULL check in destroy_queue()
All callers of destroy_queue() already perform a NULL check, so
a NULL qi will never be passed in. Inside destroy_queue(), we
dereference qi immediately, and the subsequent NULL check on qi
is unnecessary and confusing. Remove it to address the smatch
warning.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202604110937.MLUL70Lx-lkp@intel.com/
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Link: https://patch.msgid.link/20260411163705.948426-1-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'samples/livepatch/livepatch-sample.c')
0 files changed, 0 insertions, 0 deletions
