aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_tpc.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2021-02-26 00:45:59 +0000
committerAlexander Motin <mav@FreeBSD.org>2021-02-26 00:48:03 +0000
commita9bd22814f680ce87259d56155204f9294e684ce (patch)
treea2f2c9915e8e0e1e7635e9daf003abe7ad1df858 /sys/cam/ctl/ctl_tpc.c
parentaac25e222525780db8939d07a594d3e090c0a148 (diff)
downloadsrc-a9bd22814f680ce87259d56155204f9294e684ce.tar.gz
src-a9bd22814f680ce87259d56155204f9294e684ce.zip
Remove pointless lun->be_lun checks.
There is no such thing as LUN without backend, at least for years. MFC after: 1 week
Diffstat (limited to 'sys/cam/ctl/ctl_tpc.c')
-rw-r--r--sys/cam/ctl/ctl_tpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/ctl/ctl_tpc.c b/sys/cam/ctl/ctl_tpc.c
index 5e6cb09760a7..de9e97b87a3e 100644
--- a/sys/cam/ctl/ctl_tpc.c
+++ b/sys/cam/ctl/ctl_tpc.c
@@ -759,12 +759,12 @@ tpc_resolve(struct tpc_list *list, uint16_t idx, uint32_t *ss,
{
if (idx == 0xffff) {
- if (ss && list->lun->be_lun)
+ if (ss)
*ss = list->lun->be_lun->blocksize;
- if (pb && list->lun->be_lun)
+ if (pb)
*pb = list->lun->be_lun->blocksize <<
list->lun->be_lun->pblockexp;
- if (pbo && list->lun->be_lun)
+ if (pbo)
*pbo = list->lun->be_lun->blocksize *
list->lun->be_lun->pblockoff;
return (list->lun->lun);