OSDN Git Service

habanalabs: remove dead code in habanalabs_drv.c
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 8 May 2019 06:55:23 +0000 (09:55 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 8 May 2019 06:55:23 +0000 (09:55 +0300)
commit8c173dc41d38dcd286f92d75a56f8e927612150e
treeb04eb3163e609e26ea4b4f7f5f1703323ea15322
parent19734970c98b075e0159bf494d4287820522cc80
habanalabs: remove dead code in habanalabs_drv.c

This patch removes some dead code that performs checks about variables
with hard-coded values.

The patch also moves the initialization of those variables to a separate
function, that will possibly have different values per ASIC.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/habanalabs_drv.c