diff options
author | Jason Wang <jasowang@redhat.com> | 2014-06-30 14:14:48 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 14:21:27 -0700 |
commit | 7a446d635dd752a5326bbc458707364a288b3663 (patch) | |
tree | d7884de38e375b262f68cc8fd5d90cfbeca226c5 /drivers/hv | |
parent | e013ac312c79379b26cf29012cfbb37c68f79283 (diff) | |
download | blackbird-op-linux-7a446d635dd752a5326bbc458707364a288b3663.tar.gz blackbird-op-linux-7a446d635dd752a5326bbc458707364a288b3663.zip |
hyperv: remove meaningless pr_err() in vmbus_recvpacket_raw()
All its callers depends on the return value of -ENOBUFS to reallocate a
bigger buffer and retry the receiving. So there's no need to call
pr_err() here since it was not a real issue, otherwise syslog will be
flooded by this false warning.
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/channel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 284cf66489f4..531a593912ec 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c @@ -808,12 +808,8 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer, *buffer_actual_len = packetlen; - if (packetlen > bufferlen) { - pr_err("Buffer too small - needed %d bytes but " - "got space for only %d bytes\n", - packetlen, bufferlen); + if (packetlen > bufferlen) return -ENOBUFS; - } *requestid = desc.trans_id; |