Skip to content

Commit

Permalink
hyperv: remove meaningless pr_err() in vmbus_recvpacket_raw()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jasowang authored and gregkh committed Jul 9, 2014
1 parent e013ac3 commit 7a446d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7a446d6

Please sign in to comment.