From patchwork Tue Jul 7 18:11:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Moore X-Patchwork-Id: 29536 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 85434B7069 for ; Wed, 8 Jul 2009 04:11:45 +1000 (EST) Received: by ozlabs.org (Postfix) id 740FADDD1C; Wed, 8 Jul 2009 04:11:45 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id F194DDDD1B for ; Wed, 8 Jul 2009 04:11:44 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755124AbZGGSLi (ORCPT ); Tue, 7 Jul 2009 14:11:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754501AbZGGSLh (ORCPT ); Tue, 7 Jul 2009 14:11:37 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:16593 "EHLO g4t0017.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558AbZGGSLg (ORCPT ); Tue, 7 Jul 2009 14:11:36 -0400 Received: from g1t0038.austin.hp.com (g1t0038.austin.hp.com [16.236.32.44]) by g4t0017.houston.hp.com (Postfix) with ESMTP id 2885338472 for ; Tue, 7 Jul 2009 18:11:36 +0000 (UTC) Received: from ldl.fc.hp.com (ldl.fc.hp.com [15.11.146.30]) by g1t0038.austin.hp.com (Postfix) with ESMTP id 1258030171; Tue, 7 Jul 2009 18:11:36 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl.fc.hp.com (Postfix) with ESMTP id C254D39C003; Tue, 7 Jul 2009 12:11:35 -0600 (MDT) X-Virus-Scanned: Debian amavisd-new at ldl.fc.hp.com Received: from ldl.fc.hp.com ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6t1YMG+ECyfY; Tue, 7 Jul 2009 12:11:34 -0600 (MDT) Received: from flek.lan (squirrel.fc.hp.com [15.11.146.57]) by ldl.fc.hp.com (Postfix) with ESMTP id 5A90239C001; Tue, 7 Jul 2009 12:11:34 -0600 (MDT) From: Paul Moore Subject: [PATCH] tun: Remove a dead line of code To: netdev@vger.kernel.org Date: Tue, 07 Jul 2009 14:11:33 -0400 Message-ID: <20090707181133.8021.9712.stgit@flek.lan> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Remove an unnecessary assignment. Signed-off-by: Paul Moore --- drivers/net/tun.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) -- 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/tun.c b/drivers/net/tun.c index 027f7ab..4a0db7a 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -997,7 +997,6 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) goto err_free_sk; } - err = -EINVAL; err = register_netdevice(tun->dev); if (err < 0) goto err_free_sk;