Commit 6a69a23f authored by Fabio Massimo Di Nitto's avatar Fabio Massimo Di Nitto Committed by Steven Whitehouse

[GFS2] Fix build warnings

Hi Steven,

Steven Whitehouse wrote:
> Hi,
>
> Now in the -nmw git tree. Thanks,
>
> Steve.
>
> On Wed, 2007-11-21 at 11:54 -0600, Ryan O'Hara wrote:

this patch introduces a bunch of build warnings by leaving around

struct inode *inode = &ip->i_inode;

The patch in attachment cleans them up. Please apply.
Signed-off-by: default avatarFabio Massimo Di Nitto <fabbione@ubuntu.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 002ef1dc
...@@ -58,22 +58,16 @@ unsigned int gfs2_ea_name2type(const char *name, const char **truncated_name) ...@@ -58,22 +58,16 @@ unsigned int gfs2_ea_name2type(const char *name, const char **truncated_name)
static int user_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) static int user_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er)
{ {
struct inode *inode = &ip->i_inode;
return gfs2_ea_get_i(ip, er); return gfs2_ea_get_i(ip, er);
} }
static int user_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er) static int user_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er)
{ {
struct inode *inode = &ip->i_inode;
return gfs2_ea_set_i(ip, er); return gfs2_ea_set_i(ip, er);
} }
static int user_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) static int user_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er)
{ {
struct inode *inode = &ip->i_inode;
return gfs2_ea_remove_i(ip, er); return gfs2_ea_remove_i(ip, er);
} }
...@@ -151,22 +145,16 @@ static int system_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) ...@@ -151,22 +145,16 @@ static int system_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er)
static int security_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) static int security_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er)
{ {
struct inode *inode = &ip->i_inode;
return gfs2_ea_get_i(ip, er); return gfs2_ea_get_i(ip, er);
} }
static int security_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er) static int security_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er)
{ {
struct inode *inode = &ip->i_inode;
return gfs2_ea_set_i(ip, er); return gfs2_ea_set_i(ip, er);
} }
static int security_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) static int security_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er)
{ {
struct inode *inode = &ip->i_inode;
return gfs2_ea_remove_i(ip, er); return gfs2_ea_remove_i(ip, er);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment