[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54D64A1E.40405@users.sourceforge.net>
Date: Sat, 07 Feb 2015 18:23:42 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Dan Carpenter <dan.carpenter@...cle.com>,
Julia Lawall <julia.lawall@...6.fr>
CC: "James E. J. Bottomley" <JBottomley@...allels.com>,
QLogic-Storage-Upstream@...gic.com, linux-scsi@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 2/4] SCSI-QLA4...: Less function calls in qla4xxx_is_session_exists()
after error detection
> 1) People gloss over initializers without reading them.
I would find such a habit strange.
> You shouldn't put complicated code in initializers.
Does the affected memory allocation fall into such a category?
> 2) It means you have to put a line of separation between the allocation
> and the NULL check, but they should be next to each other.
Would you like to extend the Linux coding style documentation?
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists