提交 67f25175 编写于 作者: S Shawn Lin 提交者: Martin K. Petersen

scsi: esas2r: not need to alloc zero buffer for local_atto_ioctl

We don't need to use kzalloc as we will always memset the
local_atto_ioctl later.
Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com>
Acked-by: NBradley Grove <bgrove@attotech.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 709ab231
......@@ -194,7 +194,7 @@ static ssize_t write_hw(struct file *file, struct kobject *kobj,
int length = min(sizeof(struct atto_ioctl), count);
if (!a->local_atto_ioctl) {
a->local_atto_ioctl = kzalloc(sizeof(struct atto_ioctl),
a->local_atto_ioctl = kmalloc(sizeof(struct atto_ioctl),
GFP_KERNEL);
if (a->local_atto_ioctl == NULL) {
esas2r_log(ESAS2R_LOG_WARN,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部