[PATCH] lib: Drop needless ret variables