From: K. Y. Srinivasan Date: Sat, 27 Aug 2011 18:31:42 +0000 (-0700) Subject: Staging: hv: vmbus: Fix a checkpatch warning in ring_buffer.c X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~822 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b737b2e00d99a4c07ba3e50d2f5b154addfe7c76;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: vmbus: Fix a checkpatch warning in ring_buffer.c Fix a checkpatch warning in ring_buffer.c Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/ring_buffer.c b/drivers/staging/hv/ring_buffer.c index 9212699a6632..70e2e66fec71 100644 --- a/drivers/staging/hv/ring_buffer.c +++ b/drivers/staging/hv/ring_buffer.c @@ -34,7 +34,8 @@ /* Amount of space to write to */ -#define BYTES_AVAIL_TO_WRITE(r, w, z) ((w) >= (r)) ? ((z) - ((w) - (r))) : ((r) - (w)) +#define BYTES_AVAIL_TO_WRITE(r, w, z) \ + ((w) >= (r)) ? ((z) - ((w) - (r))) : ((r) - (w)) /*