We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51c1e8 commit 9682c35Copy full SHA for 9682c35
drivers/usb/typec/altmodes/thunderbolt.c
@@ -351,10 +351,10 @@ static bool tbt_ready(struct typec_altmode *alt)
351
*/
352
for (int i = 0; i < TYPEC_PLUG_SOP_PP + 1; i++) {
353
plug = typec_altmode_get_plug(tbt->alt, i);
354
- if (IS_ERR(plug))
+ if (!plug)
355
continue;
356
357
- if (!plug || plug->svid != USB_TYPEC_TBT_SID)
+ if (plug->svid != USB_TYPEC_TBT_SID)
358
break;
359
360
plug->desc = "Thunderbolt3";
0 commit comments