From: Jingning Han Date: Wed, 25 Jul 2018 15:14:43 +0000 (-0700) Subject: Clean up get_overlap_area function X-Git-Tag: v1.8.0~487^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2294a2e995e2d176a8377ad6c968c165f346b01e;p=libvpx Clean up get_overlap_area function Remove unneeded variable definition. Change-Id: Ifc8097b249acee86301e2040df8d39ecaca5ab17 --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 568aa5ded..2204339c8 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -5629,7 +5629,6 @@ uint32_t motion_compensated_prediction(VP9_COMP *cpi, ThreadData *td, 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 @@ int get_overlap_area(int grid_pos_row, int grid_pos_col, int ref_pos_row, default: assert(0); } - return overlap_area = width * height; + return width * height; } int round_floor(int ref_pos, int bsize_pix) {