summaryrefslogtreecommitdiff
path: root/drivers/fpga/dfl.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-10-08 10:52:04 +0100
committerJason Gunthorpe <jgg@nvidia.com>2020-10-08 15:14:17 -0300
commit8e71f694e0c819db39af2336f16eb9689f1ae53f (patch)
tree3af43fe881d4bbdbe982de99ca9ddf9224219487 /drivers/fpga/dfl.h
parent6c111baca692252b6354ce38ceee8006e419eff1 (diff)
IB/rdmavt: Fix sizeof mismatch
An incorrect sizeof is being used, struct rvt_ibport ** is not correct, it should be struct rvt_ibport *. Note that since ** is the same size as * this is not causing any issues. Improve this fix by using sizeof(*rdi->ports) as this allows us to not even reference the type of the pointer. Also remove line breaks as the entire statement can fit on one line. Link: https://lore.kernel.org/r/20201008095204.82683-1-colin.king@canonical.com Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)") Fixes: ff6acd69518e ("IB/rdmavt: Add device structure allocation") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/fpga/dfl.h')
0 files changed, 0 insertions, 0 deletions