@matheusbsbs / matheus-bagliano / commits / 4b15b4ab5f
Fork 0

Remove redundant bit clears from diff_setup()

All bits already clear after memset(0). Signed-off-by: Junio C Hamano <gitster@pobox.com>

Keith Cascio committed Feb 13, 2009 at 09:33 UTC 4b15b4ab5f9b19caff6d4a910ecc3e1d4f0e13f0
1 file changed -3
diff.c
-3
@@ -2326,15 +2326,12 @@ void diff_setup(struct diff_options *options)
2326 options->break_opt = -1;
2327 options->rename_limit = -1;
2328 options->dirstat_percent = 3;
2329 - DIFF_OPT_CLR(options, DIRSTAT_CUMULATIVE);
2329 options->context = 3;
2330
2331 options->change = diff_change;
2332 options->add_remove = diff_addremove;
2333 if (diff_use_color_default > 0)
2334 DIFF_OPT_SET(options, COLOR_DIFF);
2336 - else
2337 - DIFF_OPT_CLR(options, COLOR_DIFF);
2335 options->detect_rename = diff_detect_rename_default;
2336
2337 if (!diff_mnemonic_prefix) {