Hi Alexander! If I'm not entirely mistaken, this: + if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == + SLAB_CTOR_CONSTRUCTOR) + { + memset(cdev, 0, sizeof(*cdev)); + sema_init(&cdev->sem, 1); + } +} could be replaced with this: + if ((flags & SLAB_CTOR_CONSTRUCTOR) == SLAB_CTOR_CONSTRUCTOR) + { + memset(cdev, 0, sizeof(*cdev)); + sema_init(&cdev->sem, 1); + } +} Regards, Tommy __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- [PATCH] struct char_device Alexander Viro
- Re: [PATCH] struct char_device Anton Altaparmakov
- Re: [PATCH] struct char_device Oliver Xymoron
- Re: [PATCH] struct char_device Alexander Viro
- Re: [PATCH] struct char_device Oliver Xymoron
- Re: [PATCH] struct char_device Alexander Viro
- Re: [PATCH] struct char_device Guest section DW
- Re: [PATCH] struct char_device Alexander Viro
- Re: [PATCH] struct char_device Oliver Xymoron
- Re: [PATCH] struct char_device Tommy Hallgren
- Re: [PATCH] struct char_device Tommy Hallgren
- Re: [PATCH] struct char_device Andries . Brouwer
- Re: [PATCH] struct char_device Alexander Viro
- Re: [PATCH] struct char_device Andries . Brouwer
- Re: [PATCH] struct char_device Martin Dalecki
- Re: [PATCH] struct char_device Linus Torvalds
- Re: [PATCH] struct char_device Alexander Viro
- Re: [PATCH] struct char_device Jeff Garzik
- Re: [PATCH] struct char_device Jens Axboe
- Re: [PATCH] struct char_device Linus Torvalds