lkml.org 
[lkml]   [2004]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [3C509] Fix sysfs leak.
    From
    Date
    >>>>> "davej" == davej  <davej@redhat.com> writes:

    davej> #ifdef CONFIG_EISA
    davej> - if (eisa_driver_register (&el3_eisa_driver) < 0) {
    davej> + if (eisa_driver_register (&el3_eisa_driver) <= 0) {
    davej> eisa_driver_unregister (&el3_eisa_driver);
    davej> }
    davej> #endif

    This is bogus. eisa_driver_register returns 0 when it *succeeds*.

    M.
    --
    Places change, faces change. Life is so very strange.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:01    [W:0.019 / U:120.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site