lkml.org 
[lkml]   [2016]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 24/54] md/raid1: Improve another size determination in setup_conf()
    On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
    <elfring@users.sourceforge.net> wrote:
    > From: Markus Elfring <elfring@users.sourceforge.net>
    > Date: Tue, 4 Oct 2016 21:46:18 +0200
    >
    > Replace the specification of a data structure by a pointer dereference
    > as the parameter for the operator "sizeof" to make the corresponding size
    > determination a bit safer.

    Isn't this pure matter of taste?
    Some developers prefer sizeof(*ptr) because it is easier to type, other
    developers prefer sizeof(struct foo) because you can determine the type
    at first sight and makes review more easy.

    --
    Thanks,
    //richard

    \
     
     \ /
      Last update: 2016-10-06 11:30    [W:4.028 / U:0.356 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site