orinoco : Replace function name in string with __func__
Replace hard coded function name with __func__, to improve robustness and to conform to the Linux kernel coding style. Issue found using checkpatch. Signed-off-by: Keyur Patel <iamkeyur96@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -18,16 +18,16 @@ int orinoco_mic_init(struct orinoco_private *priv)
|
|||||||
{
|
{
|
||||||
priv->tx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
|
priv->tx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
|
||||||
if (IS_ERR(priv->tx_tfm_mic)) {
|
if (IS_ERR(priv->tx_tfm_mic)) {
|
||||||
printk(KERN_DEBUG "orinoco_mic_init: could not allocate "
|
printk(KERN_DEBUG "%s: could not allocate "
|
||||||
"crypto API michael_mic\n");
|
"crypto API michael_mic\n", __func__);
|
||||||
priv->tx_tfm_mic = NULL;
|
priv->tx_tfm_mic = NULL;
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->rx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
|
priv->rx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
|
||||||
if (IS_ERR(priv->rx_tfm_mic)) {
|
if (IS_ERR(priv->rx_tfm_mic)) {
|
||||||
printk(KERN_DEBUG "orinoco_mic_init: could not allocate "
|
printk(KERN_DEBUG "%s: could not allocate "
|
||||||
"crypto API michael_mic\n");
|
"crypto API michael_mic\n", __func__);
|
||||||
priv->rx_tfm_mic = NULL;
|
priv->rx_tfm_mic = NULL;
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key,
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (tfm_michael == NULL) {
|
if (tfm_michael == NULL) {
|
||||||
printk(KERN_WARNING "orinoco_mic: tfm_michael == NULL\n");
|
printk(KERN_WARNING "%s: tfm_michael == NULL\n", __func__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user