Tag: 95cc7baa7f19e191b4790d144b7cbe47369cfe32

drivers/scsi: remove unnecessary NULL test

Author: Julia Lawall <julia@diku.dk> At the point where cmnd is initialized, it is tested for NULL, so it doesn’t have to be tested again here. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // @match exists@ expression x, E; identifier fld; @@ * x->fld … when != \(x …

Continue reading