Commit 882e7e21 authored by Heena Sirwani's avatar Heena Sirwani Committed by Greg Kroah-Hartman
Browse files

Staging: lustre: lustre: osc: Changed the return code of a function from int to void.



The following patch changes the return code of a function from int to void
as the return value was not used by the callers.

Signed-off-by: default avatarHeena Sirwani <heenasirwani@gmail.com>
Reviewed-by: default avatarOctavian Purdila <octavian.purdila@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 41f8d410
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -536,7 +536,7 @@ static int osc_extent_merge(const struct lu_env *env, struct osc_extent *cur,
/**
/**
 * Drop user count of osc_extent, and unplug IO asynchronously.
 * Drop user count of osc_extent, and unplug IO asynchronously.
 */
 */
int osc_extent_release(const struct lu_env *env, struct osc_extent *ext)
void osc_extent_release(const struct lu_env *env, struct osc_extent *ext)
{
{
	struct osc_object *obj = ext->oe_obj;
	struct osc_object *obj = ext->oe_obj;


@@ -570,7 +570,6 @@ int osc_extent_release(const struct lu_env *env, struct osc_extent *ext)
		osc_io_unplug_async(env, osc_cli(obj), obj);
		osc_io_unplug_async(env, osc_cli(obj), obj);
	}
	}
	osc_extent_put(env, ext);
	osc_extent_put(env, ext);
	return 0;
}
}


static inline int overlapped(struct osc_extent *ex1, struct osc_extent *ex2)
static inline int overlapped(struct osc_extent *ex1, struct osc_extent *ex2)
+1 −1
Original line number Original line Diff line number Diff line
@@ -678,7 +678,7 @@ struct osc_extent {


int osc_extent_finish(const struct lu_env *env, struct osc_extent *ext,
int osc_extent_finish(const struct lu_env *env, struct osc_extent *ext,
		      int sent, int rc);
		      int sent, int rc);
int osc_extent_release(const struct lu_env *env, struct osc_extent *ext);
void osc_extent_release(const struct lu_env *env, struct osc_extent *ext);


/** @} osc */
/** @} osc */