]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvdimm/btt: use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Sun, 2 Jun 2024 08:18:23 +0000 (10:18 +0200)
committerIra Weiny <ira.weiny@intel.com>
Mon, 17 Jun 2024 23:39:44 +0000 (18:39 -0500)
commit0858582e7e1df72eb44edf779008ba4dee7f0d75
tree5f69bdebdfcfd1f913531cc7f18ed307307d88cd
parentc3f38fa61af77b49866b006939479069cd451173
nvdimm/btt: use sizeof(*pointer) instead of sizeof(type)

It is preferred to use sizeof(*pointer) instead of sizeof(type)
due to the type of the variable can change and one needs not
change the former (unlike the latter). This patch has no effect
on runtime behavior.

Signed-off-by: Erick Archer <erick.archer@outlook.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/r/AS8PR02MB72372490C53FB2E35DA1ADD08BFE2@AS8PR02MB7237.eurprd02.prod.outlook.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
drivers/nvdimm/btt.c