as ret is every time assigned to EINVAL in fail cases, initialise it at
the beginning.
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
{
struct ft1000_info *info;
struct proc_dir_entry *ft1000_proc_file;
- int ret = 0;
+ int ret = -EINVAL;
info = netdev_priv(dev);
if (info->ft1000_proc_dir == NULL) {
printk(KERN_WARNING "Unable to create %s dir.\n",
FT1000_PROC_DIR);
- ret = -EINVAL;
goto fail;
}
if (ft1000_proc_file == NULL) {
printk(KERN_WARNING "Unable to create /proc entry.\n");
- ret = -EINVAL;
goto fail_entry;
}