Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edba846a authored by Roland Dreier's avatar Roland Dreier
Browse files

RDMA/cxgb3: IDR IDs are signed



Fix sparse warnings about pointer signedness by using a signed int when
calling idr_get_new_above().

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
Acked-by: default avatarSteve Wise <swise@opengridcomputing.com>
parent 4b290439
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {