hv: Remove unnecessary comparison of unsigned against 0

pfncount is of type u32 and thus can never be smaller than 0.

Found by the coverity scanner, CID 143213.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Tobias Klauser 2014-04-25 17:03:50 +02:00 committed by Greg Kroah-Hartman
parent 3a28fa35d6
commit 24b8a406bf
1 changed files with 1 additions and 2 deletions

View File

@ -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;
/*