From bf75702c0bb89df43c07d1fd4fec942d67285e6d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 2 Jul 2011 11:55:51 +0000 Subject: [PATCH] scst: Avoid that the compiler complains about 'dev' being unused with CONFIG_SCST_STRICT_SERIALIZING enabled git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3651 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 14d00009d..43b328fb9 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -465,7 +465,9 @@ EXPORT_SYMBOL(scst_cmd_init_done); int scst_pre_parse(struct scst_cmd *cmd) { int res; +#ifndef CONFIG_SCST_STRICT_SERIALIZING struct scst_device *dev = cmd->dev; +#endif struct scst_dev_type *devt = cmd->devt; int rc;