aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-11-18 11:49:00 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-11-18 23:07:02 -0500
commit9c6603e1faf880bada541e9cce6514d2f3248da0 (patch)
treeecc518683d599964a793675524ce3252eddbc9d2 /tools/perf/util/scripting-engines/trace-event-python.c
parentscsi: target: core: Use RCU helpers for INQUIRY t10_alua_tg_pt_gp (diff)
downloadwireguard-linux-9c6603e1faf880bada541e9cce6514d2f3248da0.tar.xz
wireguard-linux-9c6603e1faf880bada541e9cce6514d2f3248da0.zip
scsi: target: configfs: Delete unnecessary checks for NULL
The "item" pointer is always going to be valid pointer and does not need to be checked. But if "item" were NULL then item_to_lun() would not return a NULL, but instead, the container_of() pointer math would return a value in the error pointer range. This confuses static checkers since it looks like a NULL vs IS_ERR() bug. Delete the bogus checks. Link: https://lore.kernel.org/r/20211118084900.GA24550@kili Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions