# Re: \[patch v2\] fbdev: sh\_mobile\_lcdc: checking NULL instead of IS\_ERR()

- From: Paul Mundt \<hidden\>
- Date: 2011-03-22 07:09:43 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2011/03/13149292
- Thread: https://ratatoskr.run/linux-fbdev/2011/03/13149291/t.md

```text
On Mon, Mar 21, 2011 at 06:03:13PM +0300, Dan Carpenter wrote:
> backlight_device_register() returns an ERR_PTR.  It doesn't return NULL.
> 
> Signed-off-by: Dan Carpenter <redacted>
> ---
> V2:  print the error code as well.
> This patch is againts linux-next, in case you missed that earlier.
> 
Applied, thanks.
```
