zram: simplify and optimize dev_to_zram()
authorJiang Liu <liuj97@gmail.com>
Thu, 6 Jun 2013 16:07:28 +0000 (00:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 19:12:20 +0000 (12:12 -0700)
commit80de574dca050b734d8413a98a983fba3d06240b
treeda3f4242b20ef3e6a5e24995e8d1a95bd219b78f
parent5863e10b441e7ea4b492f930f1be180a97d026f3
zram: simplify and optimize dev_to_zram()

Simplify and optimize dev_to_zram() without walking the zram_devices
array.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_sysfs.c