Commit 31580eb5 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: mac80211 conversion: device_alloc_bufs use dev_err

priv->dev->name is now null change to dev_err
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c45ce84
...@@ -650,9 +650,8 @@ static bool device_alloc_bufs(struct vnt_private *priv) ...@@ -650,9 +650,8 @@ static bool device_alloc_bufs(struct vnt_private *priv)
tx_context = kmalloc(sizeof(struct vnt_usb_send_context), tx_context = kmalloc(sizeof(struct vnt_usb_send_context),
GFP_KERNEL); GFP_KERNEL);
if (tx_context == NULL) { if (tx_context == NULL) {
DBG_PRT(MSG_LEVEL_ERR, KERN_ERR dev_err(&priv->usb->dev,
"%s : allocate tx usb context failed\n", "allocate tx usb context failed\n");
priv->dev->name);
goto free_tx; goto free_tx;
} }
...@@ -674,9 +673,7 @@ static bool device_alloc_bufs(struct vnt_private *priv) ...@@ -674,9 +673,7 @@ static bool device_alloc_bufs(struct vnt_private *priv)
priv->pRCBMem = kzalloc((sizeof(struct vnt_rcb) * priv->cbRD), priv->pRCBMem = kzalloc((sizeof(struct vnt_rcb) * priv->cbRD),
GFP_KERNEL); GFP_KERNEL);
if (priv->pRCBMem == NULL) { if (priv->pRCBMem == NULL) {
DBG_PRT(MSG_LEVEL_ERR, KERN_ERR dev_err(&priv->usb->dev, "alloc rx usb context failed\n");
"%s : alloc rx usb context failed\n",
priv->dev->name);
goto free_tx; goto free_tx;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment