]> git.baikalelectronics.ru Git - kernel.git/commit
mm/zswap.c: improve a size determination in zswap_frontswap_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 6 Jul 2017 22:40:37 +0000 (15:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Jul 2017 23:24:35 +0000 (16:24 -0700)
commit4fcca6bf0132607a4f7fb5126ff2550e2a108286
treea96b8932c08991aca39307a7913b3853e436da92
parent916e01da8302a066c1b3022a00d2408d57f3181a
mm/zswap.c: improve a size determination in zswap_frontswap_init()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding
size determination a bit safer according to the Linux coding style
convention.

Link: http://lkml.kernel.org/r/19f9da22-092b-f867-bdf6-f4dbad7ccf1f@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Seth Jennings <sjenning@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zswap.c