From: <vl...@us...> - 2010-12-20 18:28:03
|
Revision: 3151 http://scst.svn.sourceforge.net/scst/?rev=3151&view=rev Author: vlnb Date: 2010-12-20 18:27:57 +0000 (Mon, 20 Dec 2010) Log Message: ----------- Cleanup: eliminate a superfluous cast and unnest an if-statement Signed-off-by: Bart Van Assche <bva...@ac...> Modified Paths: -------------- trunk/scst/src/scst_targ.c Modified: trunk/scst/src/scst_targ.c =================================================================== --- trunk/scst/src/scst_targ.c 2010-12-20 18:25:07 UTC (rev 3150) +++ trunk/scst/src/scst_targ.c 2010-12-20 18:27:57 UTC (rev 3151) @@ -4149,7 +4149,7 @@ int scst_cmd_thread(void *arg) { - struct scst_cmd_threads *p_cmd_threads = (struct scst_cmd_threads *)arg; + struct scst_cmd_threads *p_cmd_threads = arg; static DEFINE_MUTEX(io_context_mutex); TRACE_ENTRY(); @@ -4230,10 +4230,9 @@ EXTRACHECKS_BUG_ON((p_cmd_threads->nr_threads == 1) && !list_empty(&p_cmd_threads->active_cmd_list)); - if (p_cmd_threads != &scst_main_cmd_threads) { - if (p_cmd_threads->nr_threads == 1) - p_cmd_threads->io_context = NULL; - } + if ((p_cmd_threads != &scst_main_cmd_threads) && + (p_cmd_threads->nr_threads == 1)) + p_cmd_threads->io_context = NULL; PRINT_INFO("Processing thread %s (PID %d) finished", current->comm, current->pid); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |