ia64: Fix tests on unsigned
PATCH 1/1 ia64: Fix tests on unsigned
struct ate_resource member lowest_free_index is unsigned, the test was invalid.
Signed-off-by Roel Kluin <[email protected]>
---
arch/ia64/sn/pci/pcibr/pcibr_ate.c +2 -3
@@ -70,8 +70,7 @@ static inline void free_ate_resource(struct ate_resource *ate_resource, int start) {mark_ate (ate_resource, start, ate_resource->ate[start],0 ); -if ((ate_resource->lowest_free_index > start) || - (ate_resource->lowest_free_index <0 )) +if (ate_resource->lowest_free_index > start) ate_resource->lowest_free_index = start; }
@@ -86,7 +85,7 @@ static inline int alloc_ate_resource(struct ate_resource *ate_resource,/* * Check for ate exhaustion. */ -if (ate_resource->lowest_free_index <0 ) +if (ate_resource->lowest_free_index =-1 )return -1 ;/*