提交 cea78d61 编写于 作者: S Sergio Paracuellos 提交者: Greg Kroah-Hartman

staging: ks7010: remove unnecessary 'out of memory' message

This commit removes unnecessay out of memory message
fixing the following checkpach.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: NSergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e9f83033
...@@ -957,10 +957,8 @@ static int send_stop_request(struct sdio_func *func) ...@@ -957,10 +957,8 @@ static int send_stop_request(struct sdio_func *func)
card = sdio_get_drvdata(func); card = sdio_get_drvdata(func);
pp = kzalloc(hif_align_size(sizeof(*pp)), GFP_KERNEL); pp = kzalloc(hif_align_size(sizeof(*pp)), GFP_KERNEL);
if (!pp) { if (!pp)
netdev_err(card->priv->net_dev, "allocate memory failed..\n");
return -ENOMEM; return -ENOMEM;
}
size = sizeof(*pp) - sizeof(pp->header.size); size = sizeof(*pp) - sizeof(pp->header.size);
pp->header.size = cpu_to_le16((uint16_t)size); pp->header.size = cpu_to_le16((uint16_t)size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册