commit | f8e6ad2f1fce3d55acd97aa0522ad42c9496ad5a | [log] [tgz] |
---|---|---|
author | Amit Pundir <amit.pundir@linaro.org> | Tue Aug 11 12:34:45 2015 +0530 |
committer | Dmitry Shmidt <dimitrysh@google.com> | Fri Jan 27 13:55:38 2017 -0800 |
tree | a7228dbd450012207d9ab44df0fbd4e5f8f2f29c | |
parent | 4de9e33e504682662725d175a26b40ecb79a5d64 [diff] |
ANDROID: usb: gadget: f_mtp: simplify ptp NULL pointer check Simplify MTP/PTP dev NULL pointer check introduced in Change-Id: Ic44a699d96df2e13467fc081bff88b97dcc5afb2 and restrict it to MTP/PTP function level only. Return ERR_PTR() instead of NULL from mtp_ptp function to skip doing NULL pointer checks all the way up to configfs.c Fixes: Change-Id: Ic44a699d96df2e13467fc081bff88b97dcc5afb2 ("usb: gadget: fix NULL ptr derefer while symlinking PTP func") Change-Id: Iab7c55089c115550c3506f6cca960a07ae52713d Signed-off-by: Amit Pundir <amit.pundir@linaro.org>