lkml.org 
[lkml]   [2012]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 3/9] drm/i915/intel_i2c: refactor using intel_gmbus_get_bus
    Date
    On Wed,  7 Mar 2012 19:50:44 +0800, Daniel Kurtz <djkurtz@chromium.org> wrote:
    > +struct i2c_adapter *intel_gmbus_get_bus(struct drm_i915_private *dev_priv,
    > + int pin)
    > +{
    BUG_ON(pin >= GMBUS_NUM_PORTS);

    > + return (pin < GMBUS_NUM_PORTS) ? &dev_priv->gmbus[pin].adapter : NULL;
    You just turned a programming error into a nearly undecipherable OOPS.
    -Chris

    --
    Chris Wilson, Intel Open Source Technology Centre


    \
     
     \ /
      Last update: 2012-03-07 13:05    [W:4.463 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site