[Suggestion] drivers: staging: dgrp: dgrp_net_ops.c: 'buf' is used without initialized.

Chen Gang gang.chen.5i5j at gmail.com
Tue Dec 10 05:07:58 UTC 2013


Hello Maintainers:

The compiler help me find a warning about it, please help check thanks.

The related git commit: "b73db54 Staging: dgrp: Refactor the function
dgrp_receive() in drrp_net_ops.c"

The related warning (with allmodconfig for metag):

    CC [M]  drivers/staging/dgrp/dgrp_net_ops.o
  drivers/staging/dgrp/dgrp_net_ops.c: In function 'handle_data_in_packet':
  drivers/staging/dgrp/dgrp_net_ops.c:2392: warning: 'buf' is used uninitialized in this function


Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water and life which God blessed


More information about the devel mailing list