From: Jason Gunthorpe Date: Wed, 5 Aug 2015 20:34:31 +0000 (-0600) Subject: IB/core: Make ib_dealloc_pd return void X-Git-Tag: omap-for-v4.3/fixes-rc1~52^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dd78647a2c2c224e376fc72797d411a3a0bb047;p=pandora-kernel.git IB/core: Make ib_dealloc_pd return void The majority of callers never check the return value, and even if they did, they can't do anything about a failure. All possible failure cases represent a bug in the caller, so just WARN_ON inside the function instead. This fixes a few random errors: net/rd/iw.c infinite loops while it fails. (racing with EBUSY?) This also lays the ground work to get rid of error return from the drivers. Most drivers do not error, the few that do are broken since it cannot be handled. Since uverbs can legitimately make use of EBUSY, open code the check. Signed-off-by: Jason Gunthorpe Reviewed-by: Chuck Lever Signed-off-by: Doug Ledford --- Reading git-diff-tree failed