From patchwork Tue Nov 13 17:28:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Mikityanskiy X-Patchwork-Id: 1735741 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id A10223FDF5 for ; Tue, 13 Nov 2012 17:29:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755394Ab2KMR3B (ORCPT ); Tue, 13 Nov 2012 12:29:01 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:54986 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755393Ab2KMR3A (ORCPT ); Tue, 13 Nov 2012 12:29:00 -0500 Received: by mail-ee0-f46.google.com with SMTP id b15so4133183eek.19 for ; Tue, 13 Nov 2012 09:28:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=/fLv20JOZS8W6YhZYFguzkWkah+uLCN3GDaXTOUDRbo=; b=XeUnqfoEtxEzT2+BwwI06ew2U6COcJrBBpYX3+7++jgijSi5QltF+/RjW5X8O0PJw7 ClwN2qj6+My2Xba1tIH4LgfwqKv+NPZyKr7Bdq6HlSLjmrAhMkPM1EDnMli+KSamyoPE NSq3owfA6MjLlXyvRQtpWyviXCqXxJyc/B7nInmH8N2UxvKscHDNLm3gMPwFPT+v6trL /Luz88Tmx0ZezVPdI/uqZg/17qyGipsJbsVQf3a1i3OrSmYT792NecehH4NZginbz24j vO7ZWOlNMLDHqsQJOH7iv5s0gO+KbBXh90MtRFxKHxI7olrO9qrKIcEV+zi14fy4Hkca GrjA== Received: by 10.14.179.69 with SMTP id g45mr77086622eem.42.1352827739608; Tue, 13 Nov 2012 09:28:59 -0800 (PST) Received: from laptop.olymp.linuxd.org (78-22-179-94.pool.ukrtel.net. [94.179.22.78]) by mx.google.com with ESMTPS id 42sm23845800eee.0.2012.11.13.09.28.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Nov 2012 09:28:58 -0800 (PST) From: Maxim Mikityanskiy To: greg@kroah.com, Larry.Finger@lwfinger.net, linux-wireless@vger.kernel.org Cc: Maxim Mikityanskiy Subject: [PATCH 06/17] staging: rtl8187se: Fixed oops when rmmoding Date: Tue, 13 Nov 2012 19:28:12 +0200 Message-Id: <1352827703-4659-7-git-send-email-maxtram95@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1352827703-4659-1-git-send-email-maxtram95@gmail.com> References: <1352827703-4659-1-git-send-email-maxtram95@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Don't remove procfs entry that is never created Signed-off-by: Maxim Mikityanskiy --- drivers/staging/rtl8187se/r8180_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c index 6ec3a93..8139f26 100644 --- a/drivers/staging/rtl8187se/r8180_core.c +++ b/drivers/staging/rtl8187se/r8180_core.c @@ -323,7 +323,6 @@ void rtl8180_proc_remove_one(struct net_device *dev) remove_proc_entry("stats-tx", priv->dir_dev); remove_proc_entry("stats-rx", priv->dir_dev); remove_proc_entry("registers", priv->dir_dev); - remove_proc_entry(dev->name, rtl8180_proc); priv->dir_dev = NULL; } }