From: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
To: gregkh@linuxfoundation.org
Cc: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>,
joe@perches.com, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v5 09/11] staging: rtl8192e: rtllib.h: remove duplicated container_of
Date: Tue, 17 Mar 2015 00:00:56 +0100 [thread overview]
Message-ID: <1426546858-25212-10-git-send-email-mateusz.kulikowski@gmail.com> (raw)
In-Reply-To: <1426546858-25212-1-git-send-email-mateusz.kulikowski@gmail.com>
This macro is already defined in kernel.h - there is no need to redefine it.
Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
---
drivers/staging/rtl8192e/rtllib.h | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index 2f05804..dd12218 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -66,20 +66,6 @@
#define IW_CUSTOM_MAX 256 /* In bytes */
#endif
-#ifndef container_of
-/**
- * container_of - cast a member of a structure out to the containing structure
- *
- * @ptr: the pointer to the member.
- * @type: the type of the container struct this is embedded in.
- * @member: the name of the member within the struct.
- *
- */
-#define container_of(ptr, type, member) ({ \
- const typeof(((type *)0)->member)*__mptr = (ptr); \
- (type *)((char *)__mptr - offsetof(type, member)); })
-#endif
-
#define skb_tail_pointer_rsl(skb) skb_tail_pointer(skb)
#define EXPORT_SYMBOL_RSL(x) EXPORT_SYMBOL(x)
--
1.8.4.1
next prev parent reply other threads:[~2015-03-16 23:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 23:00 [PATCH v5 00/11] staging: rtl8192e: fix coding style issues Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 01/11] staging: rtl8192e: fix coding style issues (merge broken strings) Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 02/11] staging: rtl8192e: fix coding style issues (spaces before semicolon) Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 03/11] staging: rtl8192e: fix coding style errors (macros in parentheses) Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 04/11] staging: rtl8192e: rtllib_wx: remove duplicate messages Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 05/11] staging: rtl8192e: fix coding style warnings (printk -> netdev_*) Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 06/11] staging: rtl8192e: remove rtllib_endianfree.h Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 07/11] staging: rtl8192e: remove dead code Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 08/11] staging: rtl8192e: remove unused macros Mateusz Kulikowski
2015-03-16 23:00 ` Mateusz Kulikowski [this message]
2015-03-16 23:00 ` [PATCH v5 10/11] drivers: staging: rtl8192e: remove eqMacAddr macro Mateusz Kulikowski
2015-03-16 23:00 ` [PATCH v5 11/11] staging: rtl8192e: remove CURRENT_RATE macro Mateusz Kulikowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426546858-25212-10-git-send-email-mateusz.kulikowski@gmail.com \
--to=mateusz.kulikowski@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®