We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1bc15f commit fc772e3Copy full SHA for fc772e3
drivers/infiniband/core/iwcm.c
@@ -206,17 +206,17 @@ static void free_cm_id(struct iwcm_id_private *cm_id_priv)
206
207
/*
208
* Release a reference on cm_id. If the last reference is being
209
- * released, free the cm_id and return 1.
+ * released, free the cm_id and return 'true'.
210
*/
211
-static int iwcm_deref_id(struct iwcm_id_private *cm_id_priv)
+static bool iwcm_deref_id(struct iwcm_id_private *cm_id_priv)
212
{
213
if (refcount_dec_and_test(&cm_id_priv->refcount)) {
214
BUG_ON(!list_empty(&cm_id_priv->work_list));
215
free_cm_id(cm_id_priv);
216
- return 1;
+ return true;
217
}
218
219
- return 0;
+ return false;
220
221
222
static void add_ref(struct iw_cm_id *cm_id)
0 commit comments