nvme: remove superfluous parentheses
Remove superfluous parentheses around ctrlr->cdata.mdts. They provide no value while making the code harder to read. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I4342d87f0e33fd92fe76357eb0379fb1e9c8f98f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5138 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
2e9cd9d7b0
commit
efedaf17e8
@ -1520,7 +1520,7 @@ nvme_ctrlr_identify_done(void *arg, const struct spdk_nvme_cpl *cpl)
|
||||
SPDK_DEBUGLOG(nvme, "transport max_xfer_size %u\n", ctrlr->max_xfer_size);
|
||||
if (ctrlr->cdata.mdts > 0) {
|
||||
ctrlr->max_xfer_size = spdk_min(ctrlr->max_xfer_size,
|
||||
ctrlr->min_page_size * (1 << (ctrlr->cdata.mdts)));
|
||||
ctrlr->min_page_size * (1 << ctrlr->cdata.mdts));
|
||||
SPDK_DEBUGLOG(nvme, "MDTS max_xfer_size %u\n", ctrlr->max_xfer_size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user