Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2537befd authored by Pratham Pratap's avatar Pratham Pratap
Browse files

USB: gadget: qti: Fix compilation issue for llvm config



Commit 00b09723 ("USB: gadget: qti: Fix NULL check for
usb_pid_string") performs a NULL check for the value which
usb_pid_string is pointing. This check performs a comparison
between char and void* which throws a warning during
compilation. If llvm config is enabled this warning is
treated as a fatal error and compilation fails. Fix this
by adding explicit check for usb_pid_string[0] against zero.

Change-Id: I84b4ed53e400a5702d87f851c724126a3f817d64
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 37e7a537
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment