]> git.baikalelectronics.ru Git - kernel.git/commit
dm: remove pointless kobject comparison in dm_get_from_kobject
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 7 Jan 2014 03:53:28 +0000 (22:53 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2014 18:22:32 +0000 (13:22 -0500)
commitc18181c4b54cda7d91e17e91cdcd2ddd618e3593
tree29598896c6cd61e807a337075de578c53fed2349
parent127888cf79087286263e873f2f2b9844ecd11c4a
dm: remove pointless kobject comparison in dm_get_from_kobject

The comparison is always true and the compiler optimizes it out anyway.

Milan offered additional context relative to the original commit
fc7685f1f5 ("dm: add name and uuid to sysfs") which introduced the code:
"I think it is just relict of some experiments before I committed this
simple embedded sysfs kobj handling".

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Acked-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c