Skip to contentSkip to conversation

: (error) Uninitialized variable: d

U-Boot Wolfgang Denk 2 participants 3 messages Nov 6, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

cppcheck reports:

[drivers/usb/gadget/f_dfu.c:687]: (error) Uninitialized variable: d

can you please have a look? Thanks!

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You could end up being oddly sad and full of a strange, diffuse  com-
passion  which would lead you to believe that it might be a good idea
to wipe out the whole human race and start again with amoebas.
                                 - Terry Pratchett, _Guards! Guards!_
#1 lore raw

Hi Wolfgang,

Quoted 7 lines

Hello,

cppcheck reports:

[drivers/usb/gadget/f_dfu.c:687]: (error) Uninitialized variable: d

can you please have a look? Thanks!

I will look on it, but first at a first glance it all looks correct. We definitely need usb_interface descriptor...

Quoted 6 lines

Best regards,

Wolfgang Denk

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
#2 lore raw

Dear Lukasz,

Quoted 2 lines · In message <20141106135936.26788299@amdc2363> you wrote:
Quoted 2 lines

[drivers/usb/gadget/f_dfu.c:687]: (error) Uninitialized variable: d

...

Quoted 2 lines

I will look on it, but first at a first glance it all looks correct. We definitely need usb_interface descriptor...

You are right. This appears to be a false positive. Strange...

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is dangerous to be right on a subject  on  which  the  established
authorities are wrong.                                    -- Voltaire