Re: [PATCH] tg3: remove redundant pm init code

From: David Miller
Date: Mon Jun 03 2013 - 03:13:18 EST


From: Yijing Wang <wangyijing@xxxxxxxxxx>
Date: Wed, 29 May 2013 17:00:32 +0800

> Pci_enable_device() will set device pm state to D0, so
> it's no need to do it again in tg3_init_one().
>
> Signed-off-by: Yijing Wang <wangyijing@xxxxxxxxxx>

This patch introduces a warning:

drivers/net/ethernet/broadcom/tg3.c: In function ʽtg3_init_oneʼ:
drivers/net/ethernet/broadcom/tg3.c:17231:13: warning: ʽpm_capʼ may be used uninitialized in this function [-Wuninitialized]
N?§²ζμrΈ?yϊθ?Ψb²X¬ΆΗ§vΨ^?)ήΊ{.nΗ+?·??{±?κηzX§Ά?ʽά¨}©?²Ζ zΪ&j:+v?¨Ύ«?κηzZ+?Κ+zf£ʼ·h??§~?­?Ϋi?ϋΰzΉ?w?ʼΈ??¨θ­Ϊ&ʼ)ίʼf?ω^jΗ«y§m?α@A«aΆΪ? 0Άμh?ε?i