mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
e013ac312c
commit
7a446d635d
@ -808,12 +808,8 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
|
|||||||
|
|
||||||
*buffer_actual_len = packetlen;
|
*buffer_actual_len = packetlen;
|
||||||
|
|
||||||
if (packetlen > bufferlen) {
|
if (packetlen > bufferlen)
|
||||||
pr_err("Buffer too small - needed %d bytes but "
|
|
||||||
"got space for only %d bytes\n",
|
|
||||||
packetlen, bufferlen);
|
|
||||||
return -ENOBUFS;
|
return -ENOBUFS;
|
||||||
}
|
|
||||||
|
|
||||||
*requestid = desc.trans_id;
|
*requestid = desc.trans_id;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user