shithub: libvpx

Download patch

ref: 2294a2e995e2d176a8377ad6c968c165f346b01e
parent: 2ca41bd903667cd465954a02769802a72184a0a0
author: Jingning Han <jingning@google.com>
date: Wed Jul 25 04:14:43 EDT 2018

Clean up get_overlap_area function

Remove unneeded variable definition.

Change-Id: Ifc8097b249acee86301e2040df8d39ecaca5ab17

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -5629,7 +5629,6 @@
 
 int get_overlap_area(int grid_pos_row, int grid_pos_col, int ref_pos_row,
                      int ref_pos_col, int block, BLOCK_SIZE bsize) {
-  int overlap_area;
   int width = 0, height = 0;
   int bw = 4 << b_width_log2_lookup[bsize];
   int bh = 4 << b_height_log2_lookup[bsize];
@@ -5654,7 +5653,7 @@
     default: assert(0);
   }
 
-  return overlap_area = width * height;
+  return width * height;
 }
 
 int round_floor(int ref_pos, int bsize_pix) {