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: firefly_0821_release~3680^2~4313^2^2~822 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b737b2e00d99a4c07ba3e50d2f5b154addfe7c76;p=firefly-linux-kernel-4.4.55.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)) /*