Skip to content
GitLab
  • Explore
  • Sign in
  • Register
  • xenomaixenomai
  • ipipe-x86
  • Repository
  • ipipe-x86
  • drivers
  • staging
  • comedi
  • drivers
  • s626.c
Find file Blame History Permalink
  • H Hartley Sweeten's avatar
    staging: comedi: s626: remove 'allocatedBuf' from private data · 68ad0ae0
    H Hartley Sweeten authored Sep 24, 2012
    
    
    This variable is only used to count the number of dma buffers
    allocated during the attach. If an allocation fails, the attach
    function exits with -ENOMEM. When this variable is checked later
    it will always be == 2. Just remove the variable and the check.
    
    This allows bringing the code back an indent level in
    s626_initialize(). Note, coding style issues in this function
    are not addressed yet.
    
    Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
    Cc: Ian Abbott <abbotti@mev.co.uk>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    68ad0ae0

Imprint & Privacy Policy