From: David Wells Date: Fri, 4 Nov 2016 22:46:14 +0000 (-0400) Subject: Remove a repeated subexpression. X-Git-Tag: v8.5.0-rc1~461^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8847db83f279f8855cd3a8ea334461e84c505cd;p=dealii.git Remove a repeated subexpression. This was caught by PVS studio. --- diff --git a/source/lac/sparsity_pattern.cc b/source/lac/sparsity_pattern.cc index 29388bf501..fdd32cfbc2 100644 --- a/source/lac/sparsity_pattern.cc +++ b/source/lac/sparsity_pattern.cc @@ -577,9 +577,7 @@ void SparsityPattern::copy_from (const FullMatrix &matrix) ++entries_per_row[row]; if ((matrix.m() == matrix.n()) && - (matrix(row,row) == 0) - && - (matrix.m() == matrix.n())) + (matrix(row,row) == 0)) ++entries_per_row[row]; }