summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/inode.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-12-06 17:51:19 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-10 12:53:30 -0800
commit52797d293287f5a98bd686616527b102b077ac39 (patch)
treed528d9a75c32613040d691964556d283e38d9a11 /fs/nilfs2/inode.c
parentc1b1731d2002b93857810aa5da856b43f46bb470 (diff)
downloadlinux-52797d293287f5a98bd686616527b102b077ac39.tar.gz
linux-52797d293287f5a98bd686616527b102b077ac39.tar.bz2
linux-52797d293287f5a98bd686616527b102b077ac39.zip
drivers: phy: tweaks to phy_create()
If this was called with a NULL "dev" then it lead to a NULL dereference when we called dev_WARN(). I have changed it to WARN_ON() so that we get a stack dump and can fix the caller. The rest of this patch is just cleanup like returning directly instead of having do-nothing gotos. Using descriptive labels instead of GW-BASIC style "err0" and "err1". I also flipped the order of put_device() and ida_remove() so they are a mirror reflection of the order they were allocated. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nilfs2/inode.c')
0 files changed, 0 insertions, 0 deletions