motion-var: simplify code
motion-var: simplify code

Change-Id: I620fab24173eef846510a74f4186c315f6623052

GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom