diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-08-11 00:58:59 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2025-08-20 23:01:27 +0530 |
commit | 847164d47098f55e99503819300b36cca20cb4f7 (patch) | |
tree | 3ce989524fee17ef29d3c298f07a8dba4beb714d /drivers/infiniband/hw/ionic/ionic_controlpath.c | |
parent | 7a430af7d135be5042f14987bce16f6b40a3f694 (diff) |
dmaengine: idxd: Replace memset(0) + strscpy() with strscpy_pad()
Replace memset(0) followed by strscpy() with strscpy_pad() to improve
idxd_load_iaa_device_defaults(). This avoids zeroing the memory before
copying the strings and ensures the destination buffers are only written
to once, simplifying the code and improving efficiency.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20250810225858.2953-2-thorsten.blum@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_controlpath.c')
0 files changed, 0 insertions, 0 deletions