[1/2] usb: pci-quirks: Reduce the length of a spinlock section in usb_amd_find_chipset_info()
Commit Message
'info' is local to the function. There is no need to zeroing it within
a spin_lock section.
Move the memset() after spin_unlock_irqrestore().
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
drivers/usb/host/pci-quirks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -218,9 +218,9 @@ static void usb_amd_find_chipset_info(void)
spin_unlock_irqrestore(&amd_lock, flags);
return;
}
- memset(&info, 0, sizeof(info));
spin_unlock_irqrestore(&amd_lock, flags);
+ memset(&info, 0, sizeof(info));
if (!amd_chipset_sb_type_init(&info)) {
goto commit;
}