Skip to content

Commit

Permalink
esoc: remove reduntant return_esoc_udev() fn call
Browse files Browse the repository at this point in the history
Remove reduntant return_esoc_udev() function call
while deleting a esoc device from an esoc clink.

Change-Id: Id2e812addb1bd8af0e23c4182427adbee9731a58
Signed-off-by: Mohammed Khajapasha <[email protected]>
  • Loading branch information
Mohammed Khajapasha authored and Gerrit - the friendly Code Review server committed Apr 27, 2017
1 parent bb8a119 commit 79bdcde
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/esoc/esoc_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ int esoc_clink_del_device(struct device *dev, void *dummy)
esoc_udev = esoc_udev_get_by_minor(esoc_clink->id);
if (!esoc_udev)
return 0;
return_esoc_udev(esoc_udev);
device_destroy(esoc_class, MKDEV(esoc_major, esoc_clink->id));
return_esoc_udev(esoc_udev);
return 0;
Expand Down

0 comments on commit 79bdcde

Please sign in to comment.