From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: spock@gentoo.org, linux-fbdev-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] fbdev: uvesafb driver
Date: Sat, 23 Jun 2007 13:51:22 +0200 [thread overview]
Message-ID: <20070623115122.GI4096@aon.at> (raw)
In-Reply-To: <20070623105243.GD12623@spock.one.pl>
On Sat, Jun 23, 2007 at 12:52:43PM +0200, Michal Januszewski wrote:
>+static void uvesafb_cn_callback(void *data)
>+{
>+ struct cn_msg *msg = (struct cn_msg *)data;
>+ struct uvesafb_task *utask = (struct uvesafb_task *)msg->data;
>+ struct uvesafb_ktask *task;
>+
>+ if (msg->seq >= UVESAFB_TASKS_MAX)
>+ return;
>+
>+ task = uvfb_tasks[msg->seq];
>+
>+ if (!task || msg->ack != task->ack)
>+ return;
You need utask only here, so could spare setting it before the
checking above.
>+
>+ memcpy(&task->t, utask, sizeof(struct uvesafb_task));
>+
>+ if (task->t.buf_len && task->buf)
>+ memcpy(task->buf, ((u8*)utask) + sizeof(struct uvesafb_task),
>+ task->t.buf_len);
>+
>+ complete(task->done);
>+ return;
>+}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
next prev parent reply other threads:[~2007-06-23 11:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-23 10:52 [PATCH 3/4] fbdev: uvesafb driver Michal Januszewski
2007-06-23 11:51 ` Bernhard Fischer [this message]
2007-06-23 18:35 ` Andrew Morton
2007-06-23 23:20 ` Michal Januszewski
2007-06-23 23:36 ` Andrew Morton
2007-06-24 11:15 ` Michal Januszewski
2007-06-24 3:50 ` Akinobu Mita
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070623115122.GI4096@aon.at \
--to=rep.dot.nop@gmail.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=spock@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).