From: H Hartley Sweeten Date: Tue, 30 Oct 2012 00:07:30 +0000 (-0700) Subject: staging: comedi: addi_eeprom: cleanup i_EepromReadMainHeader() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~802 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cd25bf08c2bc4794b026feea0230b9caf787744;p=pandora-kernel.git staging: comedi: addi_eeprom: cleanup i_EepromReadMainHeader() Consolidate the two loops used to read the main header data and the individual function header data from the eeprom. The structs used to read the main header are not used outside this function so remove them by reading the eeprom data into local variables used in the loop. Consolidate the 'timer' function cases. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed