On 20/05/2018 17:26:40+0200, Uwe Kleine-König wrote: > nvmem_register() never returns NULL, so IS_ERR is good enough here. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> > --- > Some people don't like IS_ERR_OR_NULL because it is a hint that an API > is badly designed or it it used in a wrong way. In this case it's the > latter. :-) > Applied, thanks. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com