static ssize_t wrapfs_write(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{
- int err = 0;
+ int err;
+
struct file *lower_file;
struct dentry *dentry = file->f_path.dentry;
static int wrapfs_readdir(struct file *file, struct dir_context *ctx)
{
- int err = 0;
+ int err;
struct file *lower_file = NULL;
struct dentry *dentry = file->f_path.dentry;
static int wrapfs_create(struct inode *dir, struct dentry *dentry,
umode_t mode, bool want_excl)
{
- int err = 0;
+ int err;
struct dentry *lower_dentry;
struct dentry *lower_parent_dentry = NULL;
struct path lower_path;
static int wrapfs_symlink(struct inode *dir, struct dentry *dentry,
const char *symname)
{
- int err = 0;
+ int err;
struct dentry *lower_dentry;
struct dentry *lower_parent_dentry = NULL;
struct path lower_path;
static int wrapfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
{
- int err = 0;
+ int err;
struct dentry *lower_dentry;
struct dentry *lower_parent_dentry = NULL;
struct path lower_path;
static int wrapfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode,
dev_t dev)
{
- int err = 0;
+ int err;
struct dentry *lower_dentry;
struct dentry *lower_parent_dentry = NULL;
struct path lower_path;
static int wrapfs_setattr(struct dentry *dentry, struct iattr *ia)
{
- int err = 0;
+ int err;
struct dentry *lower_dentry;
struct inode *inode;
struct inode *lower_inode;
struct dentry *wrapfs_lookup(struct inode *dir, struct dentry *dentry,
unsigned int flags)
{
+ int err;
struct dentry *ret, *parent;
struct path lower_parent_path;
- int err = 0;
parent = dget_parent(dentry);