Removing rv_clearx and fixing other issue

Signed-off by: Swapna Krishnan (skrishna@redhat.com)