From patchwork Fri Oct 22 18:00:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle McMartin X-Patchwork-Id: 68893 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BBE42B6F0D for ; Sat, 23 Oct 2010 05:01:12 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758371Ab0JVSA0 (ORCPT ); Fri, 22 Oct 2010 14:00:26 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:37564 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932503Ab0JVSAE (ORCPT ); Fri, 22 Oct 2010 14:00:04 -0400 Received: from kyle by bombadil.infradead.org with local (Exim 4.72 #1 (Red Hat Linux)) id 1P9LuN-0003Pq-78; Fri, 22 Oct 2010 18:00:03 +0000 Date: Fri, 22 Oct 2010 14:00:03 -0400 From: Kyle McMartin To: divy@chelsio.com Cc: netdev@vger.kernel.org Subject: [PATCH] cxgb3: slay double assignment Message-ID: <20101022180003.GO8332@bombadil.infradead.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Noticed this while building Fedora today... It's been there since around 2007, so I guess a new gcc must be catching these. Signed-off-by: Kyle McMartin --- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c index 427c451..997b14b 100644 --- a/drivers/net/cxgb3/t3_hw.c +++ b/drivers/net/cxgb3/t3_hw.c @@ -3682,7 +3682,7 @@ static void mc7_prep(struct adapter *adapter, struct mc7 *mc7, mc7->name = name; mc7->offset = base_addr - MC7_PMRX_BASE_ADDR; cfg = t3_read_reg(adapter, mc7->offset + A_MC7_CFG); - mc7->size = mc7->size = G_DEN(cfg) == M_DEN ? 0 : mc7_calc_size(cfg); + mc7->size = G_DEN(cfg) == M_DEN ? 0 : mc7_calc_size(cfg); mc7->width = G_WIDTH(cfg); }