diff --git a/core/blockchain.go b/core/blockchain.go
index feb9fb9426b39459c8cb855c7aee7757bf2749e5..b6605e66c931cfd114c4b7d228a36a91b068015f 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -456,7 +456,7 @@ func (bc *BlockChain) repair(head **types.Block) error {
 		if block == nil {
 			return fmt.Errorf("missing block %d [%x]", (*head).NumberU64()-1, (*head).ParentHash())
 		}
-		(*head) = block
+		*head = block
 	}
 }
 
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index 0372a9848d1f8888dceea6c7b05e47738c24e9c5..a16b3ba8afd46b5c73908eb826b67b7e9fb6cef3 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -1412,7 +1412,7 @@ func benchmarkLargeNumberOfValueToNonexisting(b *testing.B, numTxs, numBlocks in
 		}
 		b.StopTimer()
 		if got := chain.CurrentBlock().Transactions().Len(); got != numTxs*numBlocks {
-			b.Fatalf("Transactions were not included, expected %d, got %d", (numTxs * numBlocks), got)
+			b.Fatalf("Transactions were not included, expected %d, got %d", numTxs*numBlocks, got)
 
 		}
 	}