crypto: picoxcell - replace strict_strtoul() with kstrtoul()
PATCH 1/1 crypto: picoxcell - replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/crypto/picoxcell_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/picoxcell_crypto.c +1 -1
@@ -1298,7 +1298,7 @@ static ssize_t spacc_stat_irq_thresh_store(struct device *dev,struct spacc_engine *engine =spacc_dev_to_engine (dev);unsigned long thresh; -if (strict_strtoul (buf,0 , &thresh)) +if (kstrtoul (buf,0 , &thresh))return -EINVAL ; thresh =clamp (thresh,1UL , engine->fifo_sz -1 );
Signature · 1 line
1.7.10.4
Herbert Xu
maintainerQuoted 5 lines · Jingoo Han
The usage of
strict_strtoul()is not preferred, becausestrict_strtoul()is obsolete. Thus,kstrtoul()should be used.Signed-off-by Jingoo Han <[email protected]>
Patch applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt