From 898fb5cb5c174dfcdb87e8b1d49b11ecd77678b9 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Mon, 25 Aug 2014 16:04:26 -0700 Subject: [PATCH] staging: comedi: ni_atmio16d: cleanup atmio16d_ao_insn_write() The comedi core validates the insn->chanspec and data values before calling the (*insn_write) functions. The 'chan' will always be valid. Tidy up this function up a bit and remove the unnecessary code. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed