Commit e078ed73 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: wilc_msgqueue.c: removes debug print log

This patches removes unnecessary debug print logs.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06fb9336
...@@ -60,15 +60,11 @@ int wilc_mq_send(struct message_queue *mq, ...@@ -60,15 +60,11 @@ int wilc_mq_send(struct message_queue *mq,
unsigned long flags; unsigned long flags;
struct message *new_msg = NULL; struct message *new_msg = NULL;
if ((!mq) || (send_buf_size == 0) || (!send_buf)) { if (!mq || (send_buf_size == 0) || !send_buf)
PRINT_ER("mq or send_buf is null\n");
return -EINVAL; return -EINVAL;
}
if (mq->exiting) { if (mq->exiting)
PRINT_ER("mq fail\n");
return -EFAULT; return -EFAULT;
}
/* construct a new message */ /* construct a new message */
new_msg = kmalloc(sizeof(*new_msg), GFP_ATOMIC); new_msg = kmalloc(sizeof(*new_msg), GFP_ATOMIC);
...@@ -107,15 +103,11 @@ int wilc_mq_recv(struct message_queue *mq, ...@@ -107,15 +103,11 @@ int wilc_mq_recv(struct message_queue *mq,
struct message *msg; struct message *msg;
unsigned long flags; unsigned long flags;
if ((!mq) || (recv_buf_size == 0) || (!recv_buf) || (!recv_len)) { if (!mq || (recv_buf_size == 0) || !recv_buf || !recv_len)
PRINT_ER("mq or recv_buf is null\n");
return -EINVAL; return -EINVAL;
}
if (mq->exiting) { if (mq->exiting)
PRINT_ER("mq fail\n");
return -EFAULT; return -EFAULT;
}
spin_lock_irqsave(&mq->lock, flags); spin_lock_irqsave(&mq->lock, flags);
mq->recv_count++; mq->recv_count++;
...@@ -127,7 +119,6 @@ int wilc_mq_recv(struct message_queue *mq, ...@@ -127,7 +119,6 @@ int wilc_mq_recv(struct message_queue *mq,
if (list_empty(&mq->msg_list)) { if (list_empty(&mq->msg_list)) {
spin_unlock_irqrestore(&mq->lock, flags); spin_unlock_irqrestore(&mq->lock, flags);
up(&mq->sem); up(&mq->sem);
PRINT_ER("msg is null\n");
return -EFAULT; return -EFAULT;
} }
/* check buffer size */ /* check buffer size */
...@@ -135,7 +126,6 @@ int wilc_mq_recv(struct message_queue *mq, ...@@ -135,7 +126,6 @@ int wilc_mq_recv(struct message_queue *mq,
if (recv_buf_size < msg->len) { if (recv_buf_size < msg->len) {
spin_unlock_irqrestore(&mq->lock, flags); spin_unlock_irqrestore(&mq->lock, flags);
up(&mq->sem); up(&mq->sem);
PRINT_ER("recv_buf_size overflow\n");
return -EOVERFLOW; return -EOVERFLOW;
} }
......
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