]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: nb7vpq904m: Remove unneeded indentation
authorR Sundar <prosunofficial@gmail.com>
Mon, 6 May 2024 16:28:29 +0000 (21:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 13:37:52 +0000 (15:37 +0200)
commit0a01aec24e777a03c97fc4ed96425de981a1a1f7
treeac969c3cb44e0f43e471709ebc7f54af72960ad9
parentc3f38fa61af77b49866b006939479069cd451173
usb: typec: nb7vpq904m: Remove unneeded indentation

In function nb7vpq904m_parse_data_lanes_mapping(), the "if (ep)"
condition is basically the entire function. Making the code a bit more
readable by inverting the condition so that the function returns
immediately if there is no "ep".

Signed-off-by: R Sundar <prosunofficial@gmail.com>
Link: https://lore.kernel.org/r/20240506162829.5223-1-prosunofficial@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/nb7vpq904m.c