lkml.org 
[lkml]   [2006]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [linux-pm] [RFC] OMAP1 PM Core, PM Core Implementation 2/2


    | From: Heikki Orsila<shd@zakalwe.fi>
    |
    | On Mon, Oct 02, 2006 at 01:58:33PM -0500, Scott E. Preece wrote:
    | > It also helps with static analysis tools.
    |
    | I'd say those analysis tools are pretty useless if they can not handle
    | trivial cases like this.
    |
    | > CodingStyle seems to
    | > be silent on the point, but points to Kernighan and Ritchie, who say
    | > "These initializations are actually unnecessary, since all are zero, but
    | > it's a good idea to make them explicit anyway."
    |
    | It was a local variable. They are not autoinitialised. Are you perhaps
    | mixing this with statics and globals?
    ---

    Indeed - I answered too quickly.

    However, as noted, there's no practical cost to including the
    initializations and some of us do work in places where it's normallly
    required.

    scott
    --
    scott preece
    motorola mobile devices, il67, 1800 s. oak st., champaign, il 61820
    e-mail: preece@motorola.com fax: +1-217-384-8550
    phone: +1-217-384-8589 cell: +1-217-433-6114 pager: 2174336114@vtext.com


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-10-02 23:57    [W:3.136 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site