EDAC, i82975x: Remove set but not used variable dtype
authorYueHaibing <yuehaibing@huawei.com>
Wed, 7 Nov 2018 02:22:37 +0000 (10:22 +0800)
committerBorislav Petkov <bp@suse.de>
Wed, 7 Nov 2018 19:19:19 +0000 (20:19 +0100)
commit96c1c58eb0d715d3f66f374bb07aa96cb7cdd1fa
treea7caddf3e71cdd89ed942b078692d086e16d6656
parent8fd8cbfeada59d381c49ad700607376416e2fdd8
EDAC, i82975x: Remove set but not used variable dtype

Fix this gcc -Wunused-but-set-variable warning:

  drivers/edac/i82975x_edac.c:378:16: warning: variable 'dtype'
   set but not used [-Wunused-but-set-variable]

It was introduced in

  084a4fccef39 ("edac: move dimm properties to struct dimm_info")

but never used.

Also, remove the function i82975x_dram_type() and move the comment and
the assignment to the place where it is used.

 [ bp: massage commit message and shorten comment. ]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
CC: "Arvind R." <arvino55@gmail.com>
CC: Mauro Carvalho Chehab <mchehab@kernel.org>
CC: ravi@jetztechnologies.com
CC: arvino55@gmail.com
CC: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20181107022237.14048-1-yuehaibing@huawei.com
drivers/edac/i82975x_edac.c