From b8847db83f279f8855cd3a8ea334461e84c505cd Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 4 Nov 2016 18:46:14 -0400 Subject: [PATCH] Remove a repeated subexpression. This was caught by PVS studio. --- source/lac/sparsity_pattern.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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]; } -- 2.39.5