ldlm_lock_enqueue() always returns ELDLM_OK, no matter what happens, so
removed the unneeded variable that this value was being stored in and
just return the value itself.
Reported-by: kbuild test robot <[email protected]>
Cc: Oleg Drokin <[email protected]>
Cc: Andreas Dilger <[email protected]>
Signed-off-by: Greg Kroah-Hartman [email protected]
{
struct ldlm_lock *lock = *lockp;
struct ldlm_resource *res = lock->l_resource;
- ldlm_error_t rc = ELDLM_OK;
lock->l_last_activity = ktime_get_real_seconds();
out:
unlock_res_and_lock(lock);
- return rc;
+ return ELDLM_OK;
}
/**