[Patch] net/core: change hlist_for_each/hlist_entry to hlist_for_each_entry

2007-02-18 Thread Thomas Hisch
change occurrence of hlist_for_each/hlist_entry to hlist_for_each_entry as it combines the previous two macros Signed-off-by: Thomas Hisch <[EMAIL PROTECTED]> --- net/core/dev.c | 17 ++--- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/net/core/dev.c b/ne

[PATCH] ecryptfs: fix forgotten format specifier

2007-02-13 Thread Thomas Hisch
add format specifier %d for uid in ecryptfs_printk Signed-off-by: Thomas Hisch <[EMAIL PROTECTED]> --- fs/ecryptfs/messaging.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/ecryptfs/messaging.c b/fs/ecryptfs/messaging.c index 47d7e7b..1674d33 100644 --

[PATCH] ipv4: remove a call to skb_queue_len() in inet_diag.c

2007-02-04 Thread Thomas Hisch
remove unneeded call to skb_queue_len (skb_dequeue already checks queuelen) and replace a sizeof() by a Netlink Macro Signed-off-by: Thomas Hisch <[EMAIL PROTECTED]> --- sorry, my previous version of this patch didn't conform to the Codingstyle document. now everything should be

[PATCH] ipv4: remove a call to skb_queue_len() in inet_diag.c

2007-02-04 Thread Thomas Hisch
remove unneeded call to skb_queue_len (skb_dequeue already checks queuelen) and replace a sizeof() by a Netlink Macro Signed-off-by: Thomas Hisch <[EMAIL PROTECTED]> --- net/ipv4/inet_diag.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/net/ipv4/inet_diag.c

Re: [PATCH] Simplify some code to use the container_of() macro.

2007-01-04 Thread Thomas Hisch
card = (struct lcs_card *) > - ((char *) channel - offsetof(struct lcs_card, read)); > + card = container_of(channel, struct lcs_card, write); the last argument in container_of should be read instead of write. > offset = 0; > while (lcs_hdr->offset != 0)