Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d75d53cd571c02990d56e72f615ab11e943772f9
Commit:     d75d53cd571c02990d56e72f615ab11e943772f9
Parent:     d64f73be1b59b9556de0a8fbd4f1a003c6a45a5c
Author:     Mark M. Hoffman <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 12 14:12:28 2007 +0200
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Thu Jul 12 14:12:28 2007 +0200

    i2c: Fix sparse warning in i2c.h
    
    Kill a sparse warning by un-nesting two container_of() calls.
    
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
---
 include/linux/i2c.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index a24e267..44f2ecf 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -185,7 +185,8 @@ struct i2c_client {
 
 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj)
 {
-       return to_i2c_client(container_of(kobj, struct device, kobj));
+       struct device * const dev = container_of(kobj, struct device, kobj);
+       return to_i2c_client(dev);
 }
 
 static inline void *i2c_get_clientdata (struct i2c_client *dev)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to