[PATCH v2,RESEND] scsi/ipr: fix wrong __VA_ARGS__ usage

From: Zheng Wei
Date: Sun Mar 15 2020 - 23:46:44 EST


ipr_hcam_err uses __VA_ARGS__ without "##" prefix,
it causes a build error when there is no variable arguments.

Signed-off-by: Zheng Wei <wei.zheng@xxxxxxxx>
---

changelog
v1 -> v2
- resend for the failure of delivery to some recipients.

drivers/scsi/ipr.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index b97aa9ac2ffe..de3401972354 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -1813,14 +1813,14 @@ struct ipr_ucode_image_header {
hostrcb->hcam.u.error64.fd_res_path, \
hostrcb->rp_buffer, \
sizeof(hostrcb->rp_buffer)), \
- __VA_ARGS__); \
+ ##__VA_ARGS__); \
} else { \
ipr_ra_err((hostrcb)->ioa_cfg, \
(hostrcb)->hcam.u.error.fd_res_addr, \
- fmt, __VA_ARGS__); \
+ fmt, ##__VA_ARGS__); \
} \
} else { \
- dev_err(&(hostrcb)->ioa_cfg->pdev->dev, fmt, __VA_ARGS__); \
+ dev_err(&(hostrcb)->ioa_cfg->pdev->dev, fmt, ##__VA_ARGS__); \
} \
}

--
2.17.1