Re: [PATCH 2/15] drivers/usb/chipidea/core.c: adjust duplicate test

2013-01-21 Thread Peter Chen
On Mon, Jan 21, 2013 at 02:02:46PM +0100, Julia Lawall wrote: > From: Julia Lawall > > Delete successive tests to the same location. In this case res has already > been tested for being NULL, and calling devm_request_and_ioremap will not > make it NULL. On the other hand, devm_request_and_iorem

[PATCH 2/15] drivers/usb/chipidea/core.c: adjust duplicate test

2013-01-21 Thread Julia Lawall
From: Julia Lawall Delete successive tests to the same location. In this case res has already been tested for being NULL, and calling devm_request_and_ioremap will not make it NULL. On the other hand, devm_request_and_ioremap can return NULL on failure. A simplified version of the semantic mat