[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1407321551-27479-1-git-send-email-Julia.Lawall@lip6.fr>
Date: Wed, 6 Aug 2014 12:39:10 +0200
From: Julia Lawall <Julia.Lawall@...6.fr>
To: linux-kernel@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-scsi@...r.kernel.org,
"James E.J. Bottomley" <JBottomley@...allels.com>,
Adaptec OEM Raid Solutions <aacraid@...ptec.com>
Subject: [PATCH 0/1] delete unnecessary null test on array
Delete NULL test on array. The complete semantic patch that finds this
problem is as follows: (http://coccinelle.lip6.fr/)
// <smpl>
@r@
type T;
T [] e;
position p;
@@
(
e ==@p NULL
|
e !=@p NULL
|
!@p e
)
@ disable fld_to_ptr@
expression e;
identifier f;
position r.p;
@@
(
* (e.f) ==@p NULL
|
* (e.f) !=@p NULL
|
* !@p(e.f)
)
// </smpl>
For best results, this semantic patch requires lots of type information,
and should be used with the options --recursive-includes and
--relax-include-path. This may take a long time to run.
--
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