Re: [CFT] Sierra Wireless HSPA+ USB modem

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Thu, 7 Jul 2011 14:48:58 +0200
On Thursday 07 July 2011 14:43:22 PseudoCylon wrote:
> The compiler complained about uninitialized int
> if_usie.c: 1484
> -       uint8_t pad;
> +       uint8_t pad = 0;

I changed it so that pad is set in both cases:

                pad = (hip->id & USIE_HIP_PAD) ? 1 : 0;
                
                if ((hip->id & USIE_HIP_MASK) == USIE_HIP_CNS2H) {
                        cns = (struct usie_cns *)(((uint8_t *)(hip + 1)) + 
pad);

--HPS
Received on Thu Jul 07 2011 - 10:50:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:15 UTC