It's a false positive, if midi is NULL then i starts as zero so it won't go inside the for loop. Smatch has the same false positive.
regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html