Skip to content

Commit ebbcdd6

Browse files
opanait-wrherbertx
authored andcommitted
crypto: sahara - remove unnecessary NULL assignments
Remove unnecessary 'dev_ptr' NULL assignments in sahara_remove() and sahara_probe(). Signed-off-by: Ovidiu Panait <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 1eece9c commit ebbcdd6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/crypto/sahara.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,6 @@ static int sahara_probe(struct platform_device *pdev)
14401440

14411441
err_algs:
14421442
kthread_stop(dev->kthread);
1443-
dev_ptr = NULL;
14441443

14451444
return err;
14461445
}
@@ -1452,8 +1451,6 @@ static void sahara_remove(struct platform_device *pdev)
14521451
kthread_stop(dev->kthread);
14531452

14541453
sahara_unregister_algs(dev);
1455-
1456-
dev_ptr = NULL;
14571454
}
14581455

14591456
static struct platform_driver sahara_driver = {

0 commit comments

Comments
 (0)