diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-08-27 11:31:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-29 11:10:02 -0700 |
commit | b737b2e00d99a4c07ba3e50d2f5b154addfe7c76 (patch) | |
tree | 00421581df6a7b85c73638730d60719779debc34 | |
parent | c2ec81cb3e9d6cb6d819155883684d94fab005ad (diff) | |
download | op-kernel-dev-b737b2e00d99a4c07ba3e50d2f5b154addfe7c76.zip op-kernel-dev-b737b2e00d99a4c07ba3e50d2f5b154addfe7c76.tar.gz |
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 <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/hv/ring_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/hv/ring_buffer.c b/drivers/staging/hv/ring_buffer.c index 9212699..70e2e66 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)) /* |