projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hv: Remove unnecessary comparison of unsigned against 0
[cascardo/linux.git]
/
drivers
/
hv
/
channel.c
diff --git
a/drivers/hv/channel.c
b/drivers/hv/channel.c
index
740edec
..
284cf66
100644
(file)
--- a/
drivers/hv/channel.c
+++ b/
drivers/hv/channel.c
@@
-682,8
+682,7
@@
int vmbus_sendpacket_multipagebuffer(struct vmbus_channel *channel,
u32 pfncount = NUM_PAGES_SPANNED(multi_pagebuffer->offset,
multi_pagebuffer->len);
-
- if ((pfncount < 0) || (pfncount > MAX_MULTIPAGE_BUFFER_COUNT))
+ if (pfncount > MAX_MULTIPAGE_BUFFER_COUNT)
return -EINVAL;
/*