summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-06-22 18:58:04 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-06-22 18:58:04 +0200
commit7c9551a464e168279224139b70a439f985b601c9 (patch)
tree890775627a335dd2b260620fd298479de66ea80a /linux-core
parente67cd7dda9d7d6d82f4026f246d07bf4c4021a57 (diff)
fix typo
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/nv50_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/nv50_crtc.c b/linux-core/nv50_crtc.c
index f34e7279..887d6ec2 100644
--- a/linux-core/nv50_crtc.c
+++ b/linux-core/nv50_crtc.c
@@ -489,7 +489,7 @@ int nv50_crtc_create(struct drm_device *dev, int index)
crtc->mode = kzalloc(sizeof(struct nouveau_hw_mode), GFP_KERNEL);
crtc->native_mode = kzalloc(sizeof(struct nouveau_hw_mode), GFP_KERNEL);
- if (!crtc->mode || crtc->native_mode) {
+ if (!crtc->mode || !crtc->native_mode) {
rval = -ENOMEM;
goto out;
}