Skip to content

Commit

Permalink
RDMA/cxgb3: IDR IDs are signed
Browse files Browse the repository at this point in the history
Fix sparse warnings about pointer signedness by using a signed int when
calling idr_get_new_above().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
  • Loading branch information
Roland Dreier committed Apr 17, 2008
1 parent 4b29043 commit edba846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/cxgb3/iwch.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static inline int insert_handle(struct iwch_dev *rhp, struct idr *idr,
void *handle, u32 id)
{
int ret;
u32 newid;
int newid;

do {
if (!idr_pre_get(idr, GFP_KERNEL)) {
Expand Down

0 comments on commit edba846

Please sign in to comment.